1 Tests that the window.navigator.battery properties are present.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS typeof navigator.webkitBattery == 'object' is true
7 PASS hasOnBatteryProperty() is true
8 PASS navigator.webkitBattery.hasOwnProperty('onchargingchange') is true
9 PASS navigator.webkitBattery.hasOwnProperty('onchargingtimechange') is true
10 PASS navigator.webkitBattery.hasOwnProperty('ondischargingtimechange') is true
11 PASS navigator.webkitBattery.hasOwnProperty('onlevelchange') is true
12 PASS successfullyParsed is true