Automatic update from web-platform-tests compute pressure: Move Options to Observe method Changing the implementation to reflect API specifications change.[1] [1]: https://github.com/w3c/compute-pressure/pull/261 Bug: 333276003 Change-Id: Iebed979da7644ce1033db563972ba65b197187f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5434554 Reviewed-by: Raphael Kubo Da Costa <raphael.kubo.da.costa@intel.com> Reviewed-by: Reilly Grant <reillyg@chromium.org> Commit-Queue: Arnaud Mandy <arnaud.mandy@intel.com> Cr-Commit-Position: refs/heads/main@{#1284973} -- wpt-commits: b502725c15ef80cc8179a31a1e868ad7112bcc28 wpt-pr: 45608
16 lines
388 B
JavaScript
16 lines
388 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
// META: global=window,dedicatedworker,sharedworker
|
|
|
|
// https://w3c.github.io/compute-pressure/
|
|
|
|
'use strict';
|
|
|
|
idl_test(['compute-pressure'], ['dom', 'html'], async idl_array => {
|
|
idl_array.add_objects({
|
|
PressureObserver: ['observer'],
|
|
});
|
|
|
|
self.observer = new PressureObserver(() => {});
|
|
});
|