blob: 879898e39bd10e611f900658aaa6fa9253b3cc2d [file] [log] [blame]
Test no garbage collection of battery manager object when listeners are attached.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS batteryInfo is defined.
PASS lastSetMockBatteryInfo is defined.
PASS batteryInfo.charging is lastSetMockBatteryInfo.charging
PASS batteryInfo.chargingTime is lastSetMockBatteryInfo.chargingTime
PASS batteryInfo.dischargingTime is lastSetMockBatteryInfo.dischargingTime
PASS batteryInfo.level is lastSetMockBatteryInfo.level
PASS successfullyParsed is true