chromium/third_party/blink/web_tests/external/wpt/battery-status/idlharness.https.window.js

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