diff options
Diffstat (limited to 'testing/web-platform/tests/compute-pressure/compute_pressure_basic.tentative.https.window.js')
-rw-r--r-- | testing/web-platform/tests/compute-pressure/compute_pressure_basic.tentative.https.window.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/web-platform/tests/compute-pressure/compute_pressure_basic.tentative.https.window.js b/testing/web-platform/tests/compute-pressure/compute_pressure_basic.tentative.https.window.js new file mode 100644 index 0000000000..2f463e502b --- /dev/null +++ b/testing/web-platform/tests/compute-pressure/compute_pressure_basic.tentative.https.window.js @@ -0,0 +1,9 @@ +'use strict'; + +promise_test(async t => { + await new Promise((resolve, reject) => { + const observer = new PressureObserver(resolve, {sampleRate: 1.0}); + t.add_cleanup(() => observer.disconnect()); + observer.observe('cpu').catch(reject); + }); +}, 'An active PressureObserver calls its callback at least once'); |