blob: 8113d9e7796387c690ca518434c4dd77e9ed0402 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: timeout=long
// https://w3c.github.io/battery/
'use strict';
idl_test(
['battery-status'],
['dom', 'html'],
async idl_array => {
idl_array.add_objects({
Navigator: ['navigator'],
BatteryManager: ['manager'],
})
self.manager = await navigator.getBattery();
}
);
|