blob: 2f463e502b3754626ee0c3cc0403d9ab65b0dec8 (
plain)
1
2
3
4
5
6
7
8
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');
|