| OLD | NEW |
| (Empty) |
| 1 Tests that the window.navigator.battery properties are present. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 FAIL typeof navigator.webkitBattery == 'object' should be true. Was false. | |
| 7 FAIL hasOnBatteryProperty() should be true. Was false. | |
| 8 FAIL navigator.webkitBattery.hasOwnProperty('onchargingchange') should be true.
Threw exception TypeError: Cannot call method 'hasOwnProperty' of undefined | |
| 9 FAIL navigator.webkitBattery.hasOwnProperty('onchargingtimechange') should be tr
ue. Threw exception TypeError: Cannot call method 'hasOwnProperty' of undefined | |
| 10 FAIL navigator.webkitBattery.hasOwnProperty('ondischargingtimechange') should be
true. Threw exception TypeError: Cannot call method 'hasOwnProperty' of undefin
ed | |
| 11 FAIL navigator.webkitBattery.hasOwnProperty('onlevelchange') should be true. Thr
ew exception TypeError: Cannot call method 'hasOwnProperty' of undefined | |
| 12 PASS successfullyParsed is true | |
| 13 | |
| 14 TEST COMPLETE | |
| 15 | |
| OLD | NEW |