Description

This test validates that all of the BatteryManager attributes exist and are set to their correct values when battery is discharging.

Preconditions

  1. The device is unplugged from the charger before this test is run.
  2. The battery must neither be empty or full, nor reach empty or full capacity during the test.
  3. Waiting for battery level change to fire levelchange event, maybe need a long time

Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
FailBattery Test: battery neither empty or full, charger unplugged inassert_false: charging must be set to false expected false got true
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/battery-status/battery-discharging-manual.https.html:35:7)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/battery-status/battery-discharging-manual.https.html:34:7
Asserts run
Fail
assert_false(true, "charging must be set to false")
    at Test.<anonymous> ( /battery-status/battery-discharging-manual.https.html:35:7)