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

Side by Side Diff: LayoutTests/fast/dom/DeviceOrientation/optional-event-properties-expected.txt

Issue 22599005: Blink-side layout tests for the new Device Orientation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased once more Created 7 years, 2 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 Tests the optional properties of DeviceOrientationEvent. Each property should be null if not set, or set to null or undefined. 1 Tests the optional properties of DeviceOrientationEvent. Each property should be null if not set, or set to null or undefined.
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 event = document.createEvent('DeviceOrientationEvent') 6 event = document.createEvent('DeviceOrientationEvent')
7 PASS event.alpha == null is true 7 PASS event.alpha == null is true
8 PASS event.beta == null is true 8 PASS event.beta == null is true
9 PASS event.gamma == null is true 9 PASS event.gamma == null is true
10 PASS event.absolute == null is true
10 event.initDeviceOrientationEvent('', false, false, 0, 1, 2) 11 event.initDeviceOrientationEvent('', false, false, 0, 1, 2)
11 PASS event.alpha == 0 is true 12 PASS event.alpha == 0 is true
12 PASS event.beta == 1 is true 13 PASS event.beta == 1 is true
13 PASS event.gamma == 2 is true 14 PASS event.gamma == 2 is true
15 event.initDeviceOrientationEvent('', false, false, 0, 1, 2, true)
16 PASS event.alpha == 0 is true
17 PASS event.beta == 1 is true
18 PASS event.gamma == 2 is true
19 PASS event.absolute is true
14 event.initDeviceOrientationEvent() 20 event.initDeviceOrientationEvent()
15 PASS event.alpha == null is true 21 PASS event.alpha == null is true
16 PASS event.beta == null is true 22 PASS event.beta == null is true
17 PASS event.gamma == null is true 23 PASS event.gamma == null is true
18 event.initDeviceOrientationEvent('', false, false, [], [], []) 24 event.initDeviceOrientationEvent('', false, false, [], [], [])
19 PASS event.alpha == 0 is true 25 PASS event.alpha == 0 is true
20 PASS event.beta == 0 is true 26 PASS event.beta == 0 is true
21 PASS event.gamma == 0 is true 27 PASS event.gamma == 0 is true
22 event.initDeviceOrientationEvent('', false, false, undefined, undefined, undefin ed) 28 event.initDeviceOrientationEvent('', false, false, undefined, undefined, undefin ed)
23 PASS event.alpha == null is true 29 PASS event.alpha == null is true
24 PASS event.beta == null is true 30 PASS event.beta == null is true
25 PASS event.gamma == null is true 31 PASS event.gamma == null is true
26 event.initDeviceOrientationEvent('', false, false, '', '', '') 32 event.initDeviceOrientationEvent('', false, false, '', '', '')
27 PASS event.alpha == 0 is true 33 PASS event.alpha == 0 is true
28 PASS event.beta == 0 is true 34 PASS event.beta == 0 is true
29 PASS event.gamma == 0 is true 35 PASS event.gamma == 0 is true
30 event.initDeviceOrientationEvent('', false, false, null, null, null) 36 event.initDeviceOrientationEvent('', false, false, null, null, null)
31 PASS event.alpha == null is true 37 PASS event.alpha == null is true
32 PASS event.beta == null is true 38 PASS event.beta == null is true
33 PASS event.gamma == null is true 39 PASS event.gamma == null is true
34 PASS successfullyParsed is true 40 PASS successfullyParsed is true
35 41
36 TEST COMPLETE 42 TEST COMPLETE
37 43
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698