https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 304d5d487eda2ce794f9ce366a279787d239a2eb authored by Simon Pieters on 24 August 2018, 09:32:45 UTC
HTML: Add margins to reference for fieldset translateZ test
Tip revision: 304d5d4
battery-interface-idlharness.https.window.js
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js

// 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();
  }
);
back to top