battery-status
editWPT 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.
| Group | Passing | Tests | Disabled | Pass rate |
|---|---|---|---|---|
| Stable | 9 | 17 | 0 | 53% |
| Tentative | 0 | 0 | 0 | – |
| Reftests | 0 | 0 | 0 | – |
| All | 9 | 17 | 0 | 53% |
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
| Test | Result | Subtests | Kind | Description |
|---|---|---|---|---|
api-defined.https.html | Fail | 0 / 1 | TEST RUNNER | needs 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.html | Pass | 2 / 2 | ||
battery-allowed-by-permissions-policy-attribute.https.sub.html | Pass | 2 / 2 | ||
battery-allowed-by-permissions-policy.https.sub.html | Pass | 3 / 3 | ||
battery-allowed-in-same-origin-iframe.https.html | Pass | 1 / 1 | ||
battery-default-permissions-policy.https.sub.html | Pass | 3 / 3 | ||
battery-disabled-by-permissions-policy.https.sub.html | Pass | 3 / 3 | ||
battery-disallowed-in-cross-origin-iframe.https.sub.html | Fail | 0 / 1 | TEST BUG | reads the navigator of a cross-origin iframe through its WindowProxy, which throws a SecurityError before getBattery() is called |
battery-promise-window.https.html | Pass | 1 / 1 | ||
battery-promise.https.html | Pass | 2 / 2 | ||
idlharness.https.window.js | Pass | 39 / 39 | ||
multiple-promises-after-resolve.https.html | Fail | 0 / 1 | TEST RUNNER | needs 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.html | Fail | 0 / 1 | TEST RUNNER | needs 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.html | Fail | 0 / 2 | TEST BUG | expects 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.html | Fail | 0 / 1 | TEST RUNNER | needs 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.html | Fail | 0 / 1 | TEST RUNNER | needs 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.html | Fail | 0 / 1 | TEST RUNNER | needs 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 |