Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: third_party/WebKit/LayoutTests/battery-status/api-defined-expected.txt

Issue 1836203002: Change the battery-status layout tests to use JS mocks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 Test basic API definitions. 1 Test basic API definitions.
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 promise is defined. 6 PASS promise is defined.
7 PASS promise.then is defined. 7 PASS promise.then is defined.
8 batteryStatusSuccess invoked 8 batteryStatusSuccess invoked
9 PASS battery is defined. 9 PASS battery is defined.
10 PASS battery is non-null. 10 PASS battery is non-null.
11 PASS battery.charging is defined. 11 PASS battery.charging is defined.
12 PASS battery.chargingTime is defined. 12 PASS battery.chargingTime is defined.
13 PASS battery.dischargingTime is defined. 13 PASS battery.dischargingTime is defined.
14 PASS battery.level is defined. 14 PASS battery.level is defined.
15 PASS battery.charging is mockBatteryInfo.charging 15 PASS batteryInfo is defined.
16 PASS battery.chargingTime is mockBatteryInfo.chargingTime 16 PASS lastSetMockBatteryInfo is defined.
17 PASS battery.dischargingTime is mockBatteryInfo.dischargingTime 17 PASS batteryInfo.charging is lastSetMockBatteryInfo.charging
18 PASS battery.level is mockBatteryInfo.level 18 PASS batteryInfo.chargingTime is lastSetMockBatteryInfo.chargingTime
19 PASS batteryInfo.dischargingTime is lastSetMockBatteryInfo.dischargingTime
20 PASS batteryInfo.level is lastSetMockBatteryInfo.level
19 PASS typeof battery.onchargingchange == 'object' is true 21 PASS typeof battery.onchargingchange == 'object' is true
20 PASS typeof battery.onchargingtimechange == 'object' is true 22 PASS typeof battery.onchargingtimechange == 'object' is true
21 PASS typeof battery.ondischargingtimechange == 'object' is true 23 PASS typeof battery.ondischargingtimechange == 'object' is true
22 PASS typeof battery.onlevelchange == 'object' is true 24 PASS typeof battery.onlevelchange == 'object' is true
23 PASS 'onchargingchange' in battery is true 25 PASS 'onchargingchange' in battery is true
24 PASS 'onchargingtimechange' in battery is true 26 PASS 'onchargingtimechange' in battery is true
25 PASS 'ondischargingtimechange' in battery is true 27 PASS 'ondischargingtimechange' in battery is true
26 PASS 'onlevelchange' in battery is true 28 PASS 'onlevelchange' in battery is true
27 PASS successfullyParsed is true 29 PASS successfullyParsed is true
28 30
29 TEST COMPLETE 31 TEST COMPLETE
30 32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698