blob: 5db3053ce9a042f4b26d6c7fc3e89a4c5a170125 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// META: global=window,dedicatedworker,sharedworker
'use strict';
test(() => {
// Compute Pressure should support at least "cpu"
const sources = PressureObserver.knownSources;
assert_in_array('cpu', sources);
}, 'PressureObserver should support at least "cpu"');
test(() => {
// Compute Pressure should be frozen array
const sources = PressureObserver.knownSources;
assert_equals(sources, PressureObserver.knownSources);
}, 'PressureObserver must return always the same array');
test(() => {
// Compute Pressure should be frozen array
let sources = PressureObserver.knownSources;
assert_equals(Object.isFrozen(sources), true);
}, 'PressureObserver must return a frozen array');
|