OLD | NEW |
1 Test multiple promise resolution. | 1 Test multiple promise resolution. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS promise1 === promise2 is true | 6 PASS promise1 === promise2 is true |
7 first resolution | 7 first resolution |
8 PASS batteryInfo is defined. | 8 PASS batteryInfo is defined. |
9 PASS mockBatteryInfo is defined. | 9 PASS lastSetMockBatteryInfo is defined. |
10 PASS batteryInfo.charging is mockBatteryInfo.charging | 10 PASS batteryInfo.charging is lastSetMockBatteryInfo.charging |
11 PASS batteryInfo.chargingTime is mockBatteryInfo.chargingTime | 11 PASS batteryInfo.chargingTime is lastSetMockBatteryInfo.chargingTime |
12 PASS batteryInfo.dischargingTime is mockBatteryInfo.dischargingTime | 12 PASS batteryInfo.dischargingTime is lastSetMockBatteryInfo.dischargingTime |
13 PASS batteryInfo.level is mockBatteryInfo.level | 13 PASS batteryInfo.level is lastSetMockBatteryInfo.level |
14 second resolution | 14 second resolution |
15 PASS batteryInfo is defined. | 15 PASS batteryInfo is defined. |
16 PASS mockBatteryInfo is defined. | 16 PASS lastSetMockBatteryInfo is defined. |
17 PASS batteryInfo.charging is mockBatteryInfo.charging | 17 PASS batteryInfo.charging is lastSetMockBatteryInfo.charging |
18 PASS batteryInfo.chargingTime is mockBatteryInfo.chargingTime | 18 PASS batteryInfo.chargingTime is lastSetMockBatteryInfo.chargingTime |
19 PASS batteryInfo.dischargingTime is mockBatteryInfo.dischargingTime | 19 PASS batteryInfo.dischargingTime is lastSetMockBatteryInfo.dischargingTime |
20 PASS batteryInfo.level is mockBatteryInfo.level | 20 PASS batteryInfo.level is lastSetMockBatteryInfo.level |
21 PASS successfullyParsed is true | 21 PASS successfullyParsed is true |
22 | 22 |
23 TEST COMPLETE | 23 TEST COMPLETE |
24 | 24 |
OLD | NEW |