https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 38cb63e5ec8e6a14fb1094dee946800f5ea35bee authored by Josh Matthews on 01 August 2018, 18:31:04 UTC
servodriver: Fix reference to server configuration.
Tip revision: 38cb63e
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'],
  ['dom', 'html'],
  async idl_array => {
    idl_array.add_objects({
      Navigator: ['navigator'],
      BatteryManager: ['manager'],
    })

    self.manager = await navigator.getBattery();
  },
  'Test IDL implementation of Battery Status API'
);
back to top