battery-status

edit

WPT coverage of the tests of battery-status at the revision 5602b0f210e3. The tests link to their results in the browsers on wpt.fyi. The tentative tests (experimental features) and the reftests are listed separately from the stable tests.

GroupPassingTestsDisabledPass rate
Stable917053%
Tentative000–
Reftests000–
All917053%

Failure reasons

The tests that do not pass (failing or disabled), by kind of reason. A test with several reasons counts once per kind.

  • TEST BUG: 2
  • TEST RUNNER: 6

Stable tests

TestResultSubtestsKindDescription
api-defined.https.htmlFail0 / 1TEST RUNNERneeds the Chromium MojoJS mock of the battery monitor (/resources/chromium/mock-battery-monitor.js); the battery status of the library is set by the host with BatteryStatusProvider, which the unit tests cover
battery-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.htmlPass2 / 2
battery-allowed-by-permissions-policy-attribute.https.sub.htmlPass2 / 2
battery-allowed-by-permissions-policy.https.sub.htmlPass3 / 3
battery-allowed-in-same-origin-iframe.https.htmlPass1 / 1
battery-default-permissions-policy.https.sub.htmlPass3 / 3
battery-disabled-by-permissions-policy.https.sub.htmlPass3 / 3
battery-disallowed-in-cross-origin-iframe.https.sub.htmlFail0 / 1TEST BUGreads the navigator of a cross-origin iframe through its WindowProxy, which throws a SecurityError before getBattery() is called
battery-promise-window.https.htmlPass1 / 1
battery-promise.https.htmlPass2 / 2
idlharness.https.window.jsPass39 / 39
multiple-promises-after-resolve.https.htmlFail0 / 1TEST RUNNERneeds the Chromium MojoJS mock of the battery monitor (/resources/chromium/mock-battery-monitor.js); the battery status of the library is set by the host with BatteryStatusProvider, which the unit tests cover
multiple-promises.https.htmlFail0 / 1TEST RUNNERneeds the Chromium MojoJS mock of the battery monitor (/resources/chromium/mock-battery-monitor.js); the battery status of the library is set by the host with BatteryStatusProvider, which the unit tests cover
no-leak-on-detached-use.https.htmlFail0 / 2TEST BUGexpects the behavior of Chromium: getBattery() returns undefined for a closed window, and a promise resolved with undefined for a detached frame; the specification returns a promise, rejected with a NotAllowedError for the document of a detached frame (it is not allowed to use the battery feature)
page-visibility.https.htmlFail0 / 1TEST RUNNERneeds the Chromium MojoJS mock of the battery monitor (/resources/chromium/mock-battery-monitor.js); the battery status of the library is set by the host with BatteryStatusProvider, which the unit tests cover
promise-with-eventlisteners.https.htmlFail0 / 1TEST RUNNERneeds the Chromium MojoJS mock of the battery monitor (/resources/chromium/mock-battery-monitor.js); the battery status of the library is set by the host with BatteryStatusProvider, which the unit tests cover
restricted-level-precision.https.htmlFail0 / 1TEST RUNNERneeds the Chromium MojoJS mock of the battery monitor (/resources/chromium/mock-battery-monitor.js); the battery status of the library is set by the host with BatteryStatusProvider, which the unit tests cover