mirror of
https://github.com/servo/servo.git
synced 2025-10-17 00:39:15 +01:00
15 lines
408 B
JavaScript
15 lines
408 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
// META: global=window,dedicatedworker,sharedworker
|
|
|
|
// https://wicg.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(() => {}, {sampleRate: 1.0});
|
|
});
|