1 Test multiple windows with page visibility.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 first window: page is visible
8 PASS batteryInfo is defined.
9 PASS mockBatteryInfo is defined.
10 PASS batteryInfo.charging is mockBatteryInfo.charging
11 PASS batteryInfo.chargingTime is mockBatteryInfo.chargingTime
12 PASS batteryInfo.dischargingTime is mockBatteryInfo.dischargingTime
13 PASS batteryInfo.level is mockBatteryInfo.level
14 first window: page is hidden
15 resolution in secondWindow
16 PASS batteryInfo is defined.
17 PASS mockBatteryInfo is defined.
18 PASS batteryInfo.charging is mockBatteryInfo.charging
19 PASS batteryInfo.chargingTime is mockBatteryInfo.chargingTime
20 PASS batteryInfo.dischargingTime is mockBatteryInfo.dischargingTime
21 PASS batteryInfo.level is mockBatteryInfo.level
22 first window: page is visible
23 PASS batteryInfo is defined.
24 PASS mockBatteryInfo is defined.
25 PASS batteryInfo.charging is mockBatteryInfo.charging
26 PASS batteryInfo.chargingTime is mockBatteryInfo.chargingTime
27 PASS batteryInfo.dischargingTime is mockBatteryInfo.dischargingTime
28 PASS batteryInfo.level is mockBatteryInfo.level
29 PASS successfullyParsed is true