diff --git a/compute-pressure/compute_pressure_arguments.tentative.https.window.js b/compute-pressure/compute_pressure_arguments.tentative.https.window.js index 4b14fd0add8cf0..6f680eb8cdf5dd 100644 --- a/compute-pressure/compute_pressure_arguments.tentative.https.window.js +++ b/compute-pressure/compute_pressure_arguments.tentative.https.window.js @@ -1,12 +1,12 @@ 'use strict'; -for (const property of ['cpuUtilizationThresholds', 'cpuSpeedThresholds']) { +for (const property of ['cpuUtilizationThresholds']) { for (const out_of_range_value of [-1.0, 0.0, 1.0, 2.0]) { test(t => { const callback = () => {}; const options = { - cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5] }; + cpuUtilizationThresholds: [0.5] }; options[property] = [out_of_range_value]; assert_throws_js(TypeError, () => { @@ -21,7 +21,7 @@ for (const property of ['cpuUtilizationThresholds', 'cpuSpeedThresholds']) { const callback = () => {}; const options = { - cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5] }; + cpuUtilizationThresholds: [0.5] }; options[property] = [valid_value]; const observer = new ComputePressureObserver(callback, options); @@ -38,7 +38,7 @@ test(t => { assert_throws_js(TypeError, () => { new ComputePressureObserver( callback, - { cpuUtilizationThresholds: [0.5, 0.5], cpuSpeedThresholds: [0.5] }); + { cpuUtilizationThresholds: [0.5, 0.5] }); }); }, 'ComputePressureObserver constructor throws when cpuUtilizationThresholds ' + 'has duplicates'); diff --git a/compute-pressure/compute_pressure_basic.tentative.https.window.js b/compute-pressure/compute_pressure_basic.tentative.https.window.js index 2cdd36e0183644..0b916a13e28aa6 100644 --- a/compute-pressure/compute_pressure_basic.tentative.https.window.js +++ b/compute-pressure/compute_pressure_basic.tentative.https.window.js @@ -6,7 +6,7 @@ promise_test(async t => { const update = await new Promise((resolve, reject) => { const observer = new ComputePressureObserver( - resolve, {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + resolve, {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer.disconnect()); observer.observe('cpu').catch(reject); }); @@ -16,9 +16,4 @@ promise_test(async t => { assert_less_than_equal(update.cpuUtilization, 1.0, 'cpuUtilization range'); assert_in_array(update.cpuUtilization, [0.25, 0.75], 'cpuUtilization quantization'); - - assert_equals(typeof update.cpuSpeed, 'number'); - assert_greater_than_equal(update.cpuSpeed, 0.0, 'cpuSpeed range'); - assert_less_than_equal(update.cpuSpeed, 1.0, 'cpuUSpeed range'); - assert_in_array(update.cpuSpeed, [0.25, 0.75], 'cpuSpeed quantization'); }, 'An active ComputePressureObserver calls its callback at least once'); diff --git a/compute-pressure/compute_pressure_detached_iframe.tentative.https.html b/compute-pressure/compute_pressure_detached_iframe.tentative.https.html index 16a243f3ab933f..4ca11112c3e2d5 100644 --- a/compute-pressure/compute_pressure_detached_iframe.tentative.https.html +++ b/compute-pressure/compute_pressure_detached_iframe.tentative.https.html @@ -23,7 +23,7 @@ const observer = new frame_window.ComputePressureObserver( () => {}, - {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + {cpuUtilizationThresholds: [0.5]}); const iframe_DOMException = frame_window.DOMException; iframe.remove(); @@ -40,7 +40,7 @@ const observer = new frame_window.ComputePressureObserver( () => {}, - {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + {cpuUtilizationThresholds: [0.5]}); await observer.observe('cpu'); @@ -57,7 +57,7 @@ const observer = new frame_window.ComputePressureObserver( () => {}, - {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + {cpuUtilizationThresholds: [0.5]}); const iframe_DOMException = frame_window.DOMException; // await is intentionally not used here. We want to remove the iframe while @@ -70,13 +70,12 @@ // call in the removed iframe's ComputePressureObserver. const update = await new Promise((resolve, reject) => { const observer = new ComputePressureObserver( - resolve, {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + resolve, {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer.disconnect()); observer.observe('cpu').catch(reject); }); assert_in_array(update.cpuUtilization, [0.25, 0.75], 'cpuUtilization quantization'); - assert_in_array(update.cpuSpeed, [0.25, 0.75], 'cpuSpeed quantization') }, 'Detaching frame while ComputePressureObserver.observe() settles'); diff --git a/compute-pressure/compute_pressure_different_quantizations.tentative.https.window.js b/compute-pressure/compute_pressure_different_quantizations.tentative.https.window.js index 86f85fc4d0fa41..1ded5a9452c6aa 100644 --- a/compute-pressure/compute_pressure_different_quantizations.tentative.https.window.js +++ b/compute-pressure/compute_pressure_different_quantizations.tentative.https.window.js @@ -4,7 +4,7 @@ promise_test(async t => { const observer1_updates = []; const observer1 = new ComputePressureObserver( update => { observer1_updates.push(update); }, - {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer1.disconnect()); // Ensure that observer1's quantization scheme gets registered as the frame's // scheme before observer2 starts. @@ -17,7 +17,7 @@ promise_test(async t => { observer2_updates.push(update); resolve(); }, - {cpuUtilizationThresholds: [0.25], cpuSpeedThresholds: [0.75]}); + {cpuUtilizationThresholds: [0.25]}); t.add_cleanup(() => observer2.disconnect()); observer2.observe('cpu').catch(reject); }); @@ -27,7 +27,7 @@ promise_test(async t => { // // The check below assumes that observer2.observe() completes before the // browser dispatches any update for observer1. This assumption is highly - // likely to be true, because there shold be a 1-second delay between + // likely to be true, because there should be a 1-second delay between // observer1.observe() and the first update that observer1 would receive. assert_equals( observer1_updates.length, 0, @@ -37,8 +37,6 @@ promise_test(async t => { assert_equals(observer2_updates.length, 1); assert_in_array(observer2_updates[0].cpuUtilization, [0.125, 0.625], 'cpuUtilization quantization'); - assert_in_array(observer2_updates[0].cpuSpeed, [0.375, 0.875], - 'cpuSpeed quantization'); // Go through one more update cycle so any (incorrect) update for observer1 // makes it through the IPC queues. @@ -52,7 +50,7 @@ promise_test(async t => { observer3_updates.push(update); resolve(); }, - {cpuUtilizationThresholds: [0.75], cpuSpeedThresholds: [0.25]}); + {cpuUtilizationThresholds: [0.75]}); t.add_cleanup(() => observer3.disconnect()); observer3.observe('cpu').catch(reject); }); @@ -72,8 +70,5 @@ promise_test(async t => { assert_equals(observer3_updates.length, 1); assert_in_array(observer3_updates[0].cpuUtilization, [0.375, 0.875], 'cpuUtilization quantization'); - assert_in_array(observer3_updates[0].cpuSpeed, [0.125, 0.625], - 'cpuSpeed quantization'); - }, 'ComputePressureObserver with a new quantization schema stops all ' + 'other active observers in the same frame'); diff --git a/compute-pressure/compute_pressure_different_quantizations_across_iframes.tentative.https.window.js b/compute-pressure/compute_pressure_different_quantizations_across_iframes.tentative.https.window.js index b0bd879d1f4e1c..fd7a9625db456f 100644 --- a/compute-pressure/compute_pressure_different_quantizations_across_iframes.tentative.https.window.js +++ b/compute-pressure/compute_pressure_different_quantizations_across_iframes.tentative.https.window.js @@ -4,7 +4,7 @@ promise_test(async t => { const observer1_updates = []; const observer1 = new ComputePressureObserver( update => { observer1_updates.push(update); }, - {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer1.disconnect()); // Ensure that observer1's quantization scheme gets registered as the origin's // scheme before observer2 starts. @@ -22,7 +22,7 @@ promise_test(async t => { observer2_updates.push(update); resolve(); }, - {cpuUtilizationThresholds: [0.25], cpuSpeedThresholds: [0.75]}); + {cpuUtilizationThresholds: [0.25]}); t.add_cleanup(() => observer2.disconnect()); observer2.observe('cpu').catch(reject); }); @@ -32,7 +32,7 @@ promise_test(async t => { // // The check below assumes that observer2.observe() completes before the // browser dispatches any update for observer1. This assumption is highly - // likely to be true, because there shold be a 1-second delay between + // likely to be true, because there should be a 1-second delay between // observer1.observe() and the first update that observer1 would receive. assert_equals( observer1_updates.length, 0, @@ -42,8 +42,6 @@ promise_test(async t => { assert_equals(observer2_updates.length, 1); assert_in_array(observer2_updates[0].cpuUtilization, [0.125, 0.625], 'cpuUtilization quantization'); - assert_in_array(observer2_updates[0].cpuSpeed, [0.375, 0.875], - 'cpuSpeed quantization'); // Go through one more update cycle so any (incorrect) update for observer1 // makes it through the IPC queues. @@ -60,7 +58,7 @@ promise_test(async t => { observer3_updates.push(update); resolve(); }, - {cpuUtilizationThresholds: [0.75], cpuSpeedThresholds: [0.25]}); + {cpuUtilizationThresholds: [0.75]}); t.add_cleanup(() => observer3.disconnect()); observer3.observe('cpu').catch(reject); }); @@ -80,8 +78,5 @@ promise_test(async t => { assert_equals(observer3_updates.length, 1); assert_in_array(observer3_updates[0].cpuUtilization, [0.375, 0.875], 'cpuUtilization quantization'); - assert_in_array(observer3_updates[0].cpuSpeed, [0.125, 0.625], - 'cpuSpeed quantization'); - }, 'ComputePressureObserver with a new quantization schema stops all ' + 'other active observers'); diff --git a/compute-pressure/compute_pressure_disconnect.tentative.https.window.js b/compute-pressure/compute_pressure_disconnect.tentative.https.window.js index 1abecf313558c9..95a44669d344da 100644 --- a/compute-pressure/compute_pressure_disconnect.tentative.https.window.js +++ b/compute-pressure/compute_pressure_disconnect.tentative.https.window.js @@ -4,7 +4,7 @@ promise_test(async t => { const observer1_updates = []; const observer1 = new ComputePressureObserver(update => { observer1_updates.push(update); - }, {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + }, {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer1.disconnect()); // Ensure that observer1's schema gets registered before observer2 starts. await observer1.observe('cpu'); @@ -15,7 +15,7 @@ promise_test(async t => { const observer2 = new ComputePressureObserver(update => { observer2_updates.push(update); resolve(); - }, {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + }, {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer2.disconnect()); observer2.observe('cpu').catch(reject); }); @@ -28,8 +28,6 @@ promise_test(async t => { assert_in_array( observer2_updates[0].cpuUtilization, [0.25, 0.75], 'cpuUtilization quantization'); - assert_in_array( - observer2_updates[0].cpuSpeed, [0.25, 0.75], 'cpuSpeed quantization'); // Go through one more update cycle so any (incorrect) update for observer1 // makes it through the IPC queues. @@ -39,7 +37,7 @@ promise_test(async t => { const observer3 = new ComputePressureObserver(update => { observer3_updates.push(update); resolve(); - }, {cpuUtilizationThresholds: [0.75], cpuSpeedThresholds: [0.25]}); + }, {cpuUtilizationThresholds: [0.75]}); t.add_cleanup(() => observer3.disconnect()); observer3.observe('cpu').catch(reject); }); @@ -52,6 +50,4 @@ promise_test(async t => { assert_in_array( observer3_updates[0].cpuUtilization, [0.375, 0.875], 'cpuUtilization quantization'); - assert_in_array( - observer3_updates[0].cpuSpeed, [0.125, 0.625], 'cpuSpeed quantization'); }, 'Stopped ComputePressureObservers do not receive updates'); diff --git a/compute-pressure/compute_pressure_disconnect_idempotent.tentative.https.window.js b/compute-pressure/compute_pressure_disconnect_idempotent.tentative.https.window.js index 766f8a90ccec20..b14b3705f541a8 100644 --- a/compute-pressure/compute_pressure_disconnect_idempotent.tentative.https.window.js +++ b/compute-pressure/compute_pressure_disconnect_idempotent.tentative.https.window.js @@ -4,7 +4,7 @@ promise_test(async t => { const observer1_updates = []; const observer1 = new ComputePressureObserver(update => { observer1_updates.push(update); - }, {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + }, {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer1.disconnect()); // Ensure that observer1's schema gets registered before observer2 starts. observer1.observe('cpu'); @@ -15,7 +15,7 @@ promise_test(async t => { const observer2 = new ComputePressureObserver(update => { observer2_updates.push(update); resolve(); - }, {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + }, {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer2.disconnect()); observer2.observe('cpu').catch(reject); }); @@ -28,8 +28,6 @@ promise_test(async t => { assert_in_array( observer2_updates[0].cpuUtilization, [0.25, 0.75], 'cpuUtilization quantization'); - assert_in_array( - observer2_updates[0].cpuSpeed, [0.25, 0.75], 'cpuSpeed quantization'); // Go through one more update cycle so any (incorrect) update for observer1 // makes it through the IPC queues. @@ -39,7 +37,7 @@ promise_test(async t => { const observer3 = new ComputePressureObserver(update => { observer3_updates.push(update); resolve(); - }, {cpuUtilizationThresholds: [0.75], cpuSpeedThresholds: [0.25]}); + }, {cpuUtilizationThresholds: [0.75]}); t.add_cleanup(() => observer3.disconnect()); observer3.observe('cpu').catch(reject); }); @@ -52,6 +50,4 @@ promise_test(async t => { assert_in_array( observer3_updates[0].cpuUtilization, [0.375, 0.875], 'cpuUtilization quantization'); - assert_in_array( - observer3_updates[0].cpuSpeed, [0.125, 0.625], 'cpuSpeed quantization'); }, 'Stopped ComputePressureObservers do not receive updates'); diff --git a/compute-pressure/compute_pressure_disconnect_immediately.tentative.https.window.js b/compute-pressure/compute_pressure_disconnect_immediately.tentative.https.window.js index 766f8a90ccec20..b14b3705f541a8 100644 --- a/compute-pressure/compute_pressure_disconnect_immediately.tentative.https.window.js +++ b/compute-pressure/compute_pressure_disconnect_immediately.tentative.https.window.js @@ -4,7 +4,7 @@ promise_test(async t => { const observer1_updates = []; const observer1 = new ComputePressureObserver(update => { observer1_updates.push(update); - }, {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + }, {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer1.disconnect()); // Ensure that observer1's schema gets registered before observer2 starts. observer1.observe('cpu'); @@ -15,7 +15,7 @@ promise_test(async t => { const observer2 = new ComputePressureObserver(update => { observer2_updates.push(update); resolve(); - }, {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + }, {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer2.disconnect()); observer2.observe('cpu').catch(reject); }); @@ -28,8 +28,6 @@ promise_test(async t => { assert_in_array( observer2_updates[0].cpuUtilization, [0.25, 0.75], 'cpuUtilization quantization'); - assert_in_array( - observer2_updates[0].cpuSpeed, [0.25, 0.75], 'cpuSpeed quantization'); // Go through one more update cycle so any (incorrect) update for observer1 // makes it through the IPC queues. @@ -39,7 +37,7 @@ promise_test(async t => { const observer3 = new ComputePressureObserver(update => { observer3_updates.push(update); resolve(); - }, {cpuUtilizationThresholds: [0.75], cpuSpeedThresholds: [0.25]}); + }, {cpuUtilizationThresholds: [0.75]}); t.add_cleanup(() => observer3.disconnect()); observer3.observe('cpu').catch(reject); }); @@ -52,6 +50,4 @@ promise_test(async t => { assert_in_array( observer3_updates[0].cpuUtilization, [0.375, 0.875], 'cpuUtilization quantization'); - assert_in_array( - observer3_updates[0].cpuSpeed, [0.125, 0.625], 'cpuSpeed quantization'); }, 'Stopped ComputePressureObservers do not receive updates'); diff --git a/compute-pressure/compute_pressure_multiple.tentative.https.window.js b/compute-pressure/compute_pressure_multiple.tentative.https.window.js index 25961893722831..0efca3098d9444 100644 --- a/compute-pressure/compute_pressure_multiple.tentative.https.window.js +++ b/compute-pressure/compute_pressure_multiple.tentative.https.window.js @@ -3,21 +3,21 @@ promise_test(async t => { const update1_promise = new Promise((resolve, reject) => { const observer = new ComputePressureObserver( - resolve, {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + resolve, {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer.disconnect()); observer.observe('cpu').catch(reject); }); const update2_promise = new Promise((resolve, reject) => { const observer = new ComputePressureObserver( - resolve, {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + resolve, {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer.disconnect()); observer.observe('cpu').catch(reject); }); const update3_promise = new Promise((resolve, reject) => { const observer = new ComputePressureObserver( - resolve, {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + resolve, {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer.disconnect()); observer.observe('cpu').catch(reject); }); @@ -28,7 +28,6 @@ promise_test(async t => { for (const update of [update1, update2, update3]) { assert_in_array(update.cpuUtilization, [0.25, 0.75], 'cpuUtilization quantization'); - assert_in_array(update.cpuSpeed, [0.25, 0.75], 'cpuSpeed quantization'); } }, 'Three ComputePressureObserver instances with the same quantization ' + 'schema receive updates'); diff --git a/compute-pressure/compute_pressure_multiple_across_iframes.tentative.https.window.js b/compute-pressure/compute_pressure_multiple_across_iframes.tentative.https.window.js index 1e00c9f7e037a3..c9f97a108a91ed 100644 --- a/compute-pressure/compute_pressure_multiple_across_iframes.tentative.https.window.js +++ b/compute-pressure/compute_pressure_multiple_across_iframes.tentative.https.window.js @@ -3,7 +3,7 @@ promise_test(async t => { const update1_promise = new Promise((resolve, reject) => { const observer = new ComputePressureObserver( - resolve, {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + resolve, {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer.disconnect()); observer.observe('cpu').catch(reject); }); @@ -15,7 +15,7 @@ promise_test(async t => { const update2_promise = new Promise((resolve, reject) => { const observer = new iframe2.contentWindow.ComputePressureObserver( - resolve, {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + resolve, {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer.disconnect()); observer.observe('cpu').catch(reject); }); @@ -25,7 +25,7 @@ promise_test(async t => { const update3_promise = new Promise((resolve, reject) => { const observer = new iframe3.contentWindow.ComputePressureObserver( - resolve, {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + resolve, {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer.disconnect()); observer.observe('cpu').catch(reject); }); @@ -36,7 +36,6 @@ promise_test(async t => { for (const update of [update1, update2, update3]) { assert_in_array(update.cpuUtilization, [0.25, 0.75], 'cpuUtilization quantization'); - assert_in_array(update.cpuSpeed, [0.25, 0.75], 'cpuSpeed quantization'); } }, 'Three ComputePressureObserver instances in different iframes, but with ' + 'the same quantization schema, receive updates'); diff --git a/compute-pressure/compute_pressure_observe_idempotent.tentative.https.window.js b/compute-pressure/compute_pressure_observe_idempotent.tentative.https.window.js index b4e87dbfb270a6..dd215023fa8e83 100644 --- a/compute-pressure/compute_pressure_observe_idempotent.tentative.https.window.js +++ b/compute-pressure/compute_pressure_observe_idempotent.tentative.https.window.js @@ -6,7 +6,7 @@ promise_test(async t => { const update = await new Promise((resolve, reject) => { const observer = new ComputePressureObserver( - resolve, {cpuUtilizationThresholds: [0.5], cpuSpeedThresholds: [0.5]}); + resolve, {cpuUtilizationThresholds: [0.5]}); t.add_cleanup(() => observer.disconnect()); observer.observe('cpu').catch(reject); observer.observe('cpu').catch(reject); @@ -18,10 +18,5 @@ promise_test(async t => { assert_less_than_equal(update.cpuUtilization, 1.0, 'cpuUtilization range'); assert_in_array(update.cpuUtilization, [0.25, 0.75], 'cpuUtilization quantization'); - - assert_equals(typeof update.cpuSpeed, 'number'); - assert_greater_than_equal(update.cpuSpeed, 0.0, 'cpuSpeed range'); - assert_less_than_equal(update.cpuSpeed, 1.0, 'cpuUSpeed range'); - assert_in_array(update.cpuSpeed, [0.25, 0.75], 'cpuSpeed quantization'); }, 'ComputePressureObserver.observe() is idempotent'); diff --git a/compute-pressure/compute_pressure_observe_unobserve_failure.tentative.https.window.js b/compute-pressure/compute_pressure_observe_unobserve_failure.tentative.https.window.js index 26d8c962122614..478ef79ed20df5 100644 --- a/compute-pressure/compute_pressure_observe_unobserve_failure.tentative.https.window.js +++ b/compute-pressure/compute_pressure_observe_unobserve_failure.tentative.https.window.js @@ -3,7 +3,7 @@ promise_test(async t => { const observer = new ComputePressureObserver( t.unreached_func('oops should not end up here'), - {cpuUtilizationThresholds: [0.1, 0.5], cpuSpeedThresholds: [0.5]}); + {cpuUtilizationThresholds: [0.1, 0.5]}); t.add_cleanup(() => observer.disconnect()); await promise_rejects_js(t, TypeError, observer.observe('random')); }, 'ComputePressureObserver.observe() requires a valid source'); @@ -11,7 +11,7 @@ promise_test(async t => { test(function(t) { const observer = new ComputePressureObserver( t.unreached_func('oops should not end up here'), - {cpuUtilizationThresholds: [0.1, 0.5], cpuSpeedThresholds: [0.5]}); + {cpuUtilizationThresholds: [0.1, 0.5]}); t.add_cleanup(() => observer.disconnect()); assert_throws_js(TypeError, () => { observer.unobserve('random'); diff --git a/compute-pressure/compute_pressure_take_records.tentative.https.window.js b/compute-pressure/compute_pressure_take_records.tentative.https.window.js index fdd21592d26c2e..b0baf999e49fa8 100644 --- a/compute-pressure/compute_pressure_take_records.tentative.https.window.js +++ b/compute-pressure/compute_pressure_take_records.tentative.https.window.js @@ -3,7 +3,7 @@ test(t => { const observer = new ComputePressureObserver( t.unreached_func('This callback should not have been called.'), - {cpuUtilizationThresholds: [0.25], cpuSpeedThresholds: [0.75]}); + {cpuUtilizationThresholds: [0.25]}); const records = observer.takeRecords(); assert_equals(records.length, 0, 'No record before observe'); @@ -14,14 +14,13 @@ promise_test(async t => { const record = await new Promise((resolve, reject) => { observer = new ComputePressureObserver( resolve, - {cpuUtilizationThresholds: [0.25], cpuSpeedThresholds: [0.75]}); + {cpuUtilizationThresholds: [0.25]}); t.add_cleanup(() => observer.disconnect()); observer.observe('cpu').catch(reject); }); assert_in_array( record.cpuUtilization, [0.125, 0.625], 'cpuUtilization quantization'); - assert_in_array(record.cpuSpeed, [0.375, 0.875], 'cpuSpeed quantization'); const records = observer.takeRecords(); assert_equals(records.length, 0, 'No record available'); diff --git a/compute-pressure/compute_pressure_values.tentative.https.window.js b/compute-pressure/compute_pressure_values.tentative.https.window.js index ebe384a5ad4cb7..7377253f8140e5 100644 --- a/compute-pressure/compute_pressure_values.tentative.https.window.js +++ b/compute-pressure/compute_pressure_values.tentative.https.window.js @@ -7,12 +7,11 @@ promise_test(async t => { const update = await new Promise((resolve, reject) => { const observer = new ComputePressureObserver( resolve, - {cpuUtilizationThresholds: [0.25], cpuSpeedThresholds: [0.75]}); + {cpuUtilizationThresholds: [0.25]}); t.add_cleanup(() => observer.disconnect()); observer.observe('cpu').catch(reject); }); assert_in_array( update.cpuUtilization, [0.125, 0.625], 'cpuUtilization quantization'); - assert_in_array(update.cpuSpeed, [0.375, 0.875], 'cpuSpeed quantization'); }, 'ComputePressureObserver quantizes utilization and speed separately');