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

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

Issue 329723005: Battery Status API: blink promise implementation and layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert to a single resolver at a time Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 Test basic API definitions.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS promise is defined.
7 PASS promise.then is defined.
8 batteryStatusSuccess invoked
9 PASS battery is defined.
10 PASS battery is non-null.
11 PASS battery.charging is defined.
12 PASS battery.chargingTime is defined.
13 PASS battery.dischargingTime is defined.
14 PASS battery.level is defined.
15 PASS battery.charging is mockBatteryInfo.charging
16 PASS battery.chargingTime is mockBatteryInfo.chargingTime
17 PASS battery.dischargingTime is mockBatteryInfo.dischargingTime
18 PASS battery.level is mockBatteryInfo.level
19 PASS typeof battery.onchargingchange == 'object' is true
20 PASS typeof battery.onchargingtimechange == 'object' is true
21 PASS typeof battery.ondischargingtimechange == 'object' is true
22 PASS typeof battery.onlevelchange == 'object' is true
23 PASS battery.hasOwnProperty('onchargingchange') is true
24 PASS battery.hasOwnProperty('onchargingtimechange') is true
25 PASS battery.hasOwnProperty('ondischargingtimechange') is true
26 PASS battery.hasOwnProperty('onlevelchange') is true
27 PASS 'onchargingchange' in battery is true
28 PASS 'onchargingtimechange' in battery is true
29 PASS 'ondischargingtimechange' in battery is true
30 PASS 'onlevelchange' in battery is true
31 PASS successfullyParsed is true
32
33 TEST COMPLETE
34
OLDNEW
« no previous file with comments | « LayoutTests/battery-status/api-defined.html ('k') | LayoutTests/battery-status/multiple-promises.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698