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

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

Issue 18445003: Some rebaselines in the spirit of https://groups.google.com/a/chromium.org/forum/#!search/on$20layo… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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
1 Tests the optional properties of DeviceMotionEvent. Each property should be null if not set, or set to null or undefined. 1 Tests the optional properties of DeviceMotionEvent. 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('DeviceMotionEvent') 6 event = document.createEvent('DeviceMotionEvent')
7 PASS event.acceleration == null is true 7 FAIL event = document.createEvent('DeviceMotionEvent') threw exception NotSuppor tedError: The implementation did not support the requested type of object or ope ration.
8 PASS event.accelerationIncludingGravity == null is true 8 FAIL event.acceleration == null should be true. Threw exception TypeError: Canno t read property 'acceleration' of undefined
9 PASS event.rotationRate == null is true 9 FAIL event.accelerationIncludingGravity == null should be true. Threw exception TypeError: Cannot read property 'accelerationIncludingGravity' of undefined
10 PASS event.interval == null is true 10 FAIL event.rotationRate == null should be true. Threw exception TypeError: Canno t read property 'rotationRate' of undefined
11 FAIL event.interval == null should be true. Threw exception TypeError: Cannot re ad property 'interval' of undefined
11 event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, {x: 3, y: 4, z : 5}, {alpha: 6, beta: 7, gamma: 8}, 9) 12 event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, {x: 3, y: 4, z : 5}, {alpha: 6, beta: 7, gamma: 8}, 9)
12 PASS event.acceleration.x == 0 is true 13 FAIL event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, {x: 3, y: 4, z: 5}, {alpha: 6, beta: 7, gamma: 8}, 9) threw exception TypeError: Cannot c all method 'initDeviceMotionEvent' of undefined
13 PASS event.acceleration.y == 1 is true 14 FAIL event.acceleration.x == 0 should be true. Threw exception TypeError: Cannot read property 'acceleration' of undefined
14 PASS event.acceleration.z == 2 is true 15 FAIL event.acceleration.y == 1 should be true. Threw exception TypeError: Cannot read property 'acceleration' of undefined
15 PASS event.accelerationIncludingGravity.x == 3 is true 16 FAIL event.acceleration.z == 2 should be true. Threw exception TypeError: Cannot read property 'acceleration' of undefined
16 PASS event.accelerationIncludingGravity.y == 4 is true 17 FAIL event.accelerationIncludingGravity.x == 3 should be true. Threw exception T ypeError: Cannot read property 'accelerationIncludingGravity' of undefined
17 PASS event.accelerationIncludingGravity.z == 5 is true 18 FAIL event.accelerationIncludingGravity.y == 4 should be true. Threw exception T ypeError: Cannot read property 'accelerationIncludingGravity' of undefined
18 PASS event.rotationRate.alpha == 6 is true 19 FAIL event.accelerationIncludingGravity.z == 5 should be true. Threw exception T ypeError: Cannot read property 'accelerationIncludingGravity' of undefined
19 PASS event.rotationRate.beta == 7 is true 20 FAIL event.rotationRate.alpha == 6 should be true. Threw exception TypeError: Ca nnot read property 'rotationRate' of undefined
20 PASS event.rotationRate.gamma == 8 is true 21 FAIL event.rotationRate.beta == 7 should be true. Threw exception TypeError: Can not read property 'rotationRate' of undefined
21 PASS event.interval == 9 is true 22 FAIL event.rotationRate.gamma == 8 should be true. Threw exception TypeError: Ca nnot read property 'rotationRate' of undefined
22 PASS event.initDeviceMotionEvent('', false, false, objectThrowingException, {x: 3, z: 5}, {gamma: 8, beta: 7}, 9) threw exception Error: x getter exception. 23 FAIL event.interval == 9 should be true. Threw exception TypeError: Cannot read property 'interval' of undefined
23 PASS event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, objectThr owingException, {gamma: 8, beta: 7}, 9) threw exception Error: x getter exceptio n. 24 FAIL event.initDeviceMotionEvent('', false, false, objectThrowingException, {x: 3, z: 5}, {gamma: 8, beta: 7}, 9) should throw Error: x getter exception. Threw exception TypeError: Cannot call method 'initDeviceMotionEvent' of undefined.
24 PASS event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, {x: 3, z: 5}, objectThrowingException, 9) threw exception Error: alpha getter exception. 25 FAIL event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, objectThr owingException, {gamma: 8, beta: 7}, 9) should throw Error: x getter exception. Threw exception TypeError: Cannot call method 'initDeviceMotionEvent' of undefin ed.
25 PASS event.initDeviceMotionEvent('', false, false, {x: objectThrowingException, y: 1, z: 2}, {x: 3, y: 4, z: 5}, {alpha: 6, beta: 7, gamma: 8}, 9) threw excepti on Error: valueOf threw exception. 26 FAIL event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, {x: 3, z: 5}, objectThrowingException, 9) should throw Error: alpha getter exception. Thr ew exception TypeError: Cannot call method 'initDeviceMotionEvent' of undefined.
26 PASS event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, {x: 3, y: objectThrowingException, z: 5}, {alpha: 6, beta: 7, gamma: 8}, 9) threw excepti on Error: valueOf threw exception. 27 FAIL event.initDeviceMotionEvent('', false, false, {x: objectThrowingException, y: 1, z: 2}, {x: 3, y: 4, z: 5}, {alpha: 6, beta: 7, gamma: 8}, 9) should throw Error: valueOf threw exception. Threw exception TypeError: Cannot call method 'i nitDeviceMotionEvent' of undefined.
27 PASS event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, {x: 3, y: 4, z: 5}, {alpha: 6, beta: 7, gamma: objectThrowingException}, 9) threw excepti on Error: valueOf threw exception. 28 FAIL event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, {x: 3, y: objectThrowingException, z: 5}, {alpha: 6, beta: 7, gamma: 8}, 9) should throw Error: valueOf threw exception. Threw exception TypeError: Cannot call method 'i nitDeviceMotionEvent' of undefined.
29 FAIL event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, {x: 3, y: 4, z: 5}, {alpha: 6, beta: 7, gamma: objectThrowingException}, 9) should throw Error: valueOf threw exception. Threw exception TypeError: Cannot call method 'i nitDeviceMotionEvent' of undefined.
28 event.initDeviceMotionEvent('', false, false, {y: 1, x: 0}, {x: 3, z: 5}, {gamma : 8, beta: 7}, 9) 30 event.initDeviceMotionEvent('', false, false, {y: 1, x: 0}, {x: 3, z: 5}, {gamma : 8, beta: 7}, 9)
29 PASS event.acceleration.x == 0 is true 31 FAIL event.initDeviceMotionEvent('', false, false, {y: 1, x: 0}, {x: 3, z: 5}, { gamma: 8, beta: 7}, 9) threw exception TypeError: Cannot call method 'initDevice MotionEvent' of undefined
30 PASS event.acceleration.y == 1 is true 32 FAIL event.acceleration.x == 0 should be true. Threw exception TypeError: Cannot read property 'acceleration' of undefined
31 PASS event.acceleration.z == null is true 33 FAIL event.acceleration.y == 1 should be true. Threw exception TypeError: Cannot read property 'acceleration' of undefined
32 PASS event.accelerationIncludingGravity.x == 3 is true 34 FAIL event.acceleration.z == null should be true. Threw exception TypeError: Can not read property 'acceleration' of undefined
33 PASS event.accelerationIncludingGravity.y == null is true 35 FAIL event.accelerationIncludingGravity.x == 3 should be true. Threw exception T ypeError: Cannot read property 'accelerationIncludingGravity' of undefined
34 PASS event.accelerationIncludingGravity.z == 5 is true 36 FAIL event.accelerationIncludingGravity.y == null should be true. Threw exceptio n TypeError: Cannot read property 'accelerationIncludingGravity' of undefined
35 PASS event.rotationRate.alpha == null is true 37 FAIL event.accelerationIncludingGravity.z == 5 should be true. Threw exception T ypeError: Cannot read property 'accelerationIncludingGravity' of undefined
36 PASS event.rotationRate.beta == 7 is true 38 FAIL event.rotationRate.alpha == null should be true. Threw exception TypeError: Cannot read property 'rotationRate' of undefined
37 PASS event.rotationRate.gamma == 8 is true 39 FAIL event.rotationRate.beta == 7 should be true. Threw exception TypeError: Can not read property 'rotationRate' of undefined
38 PASS event.interval == 9 is true 40 FAIL event.rotationRate.gamma == 8 should be true. Threw exception TypeError: Ca nnot read property 'rotationRate' of undefined
41 FAIL event.interval == 9 should be true. Threw exception TypeError: Cannot read property 'interval' of undefined
39 event.initDeviceMotionEvent() 42 event.initDeviceMotionEvent()
40 PASS event.acceleration == null is true 43 FAIL event.initDeviceMotionEvent() threw exception TypeError: Cannot call method 'initDeviceMotionEvent' of undefined
41 PASS event.accelerationIncludingGravity == null is true 44 FAIL event.acceleration == null should be true. Threw exception TypeError: Canno t read property 'acceleration' of undefined
42 PASS event.rotationRate == null is true 45 FAIL event.accelerationIncludingGravity == null should be true. Threw exception TypeError: Cannot read property 'accelerationIncludingGravity' of undefined
43 PASS event.interval == null is true 46 FAIL event.rotationRate == null should be true. Threw exception TypeError: Canno t read property 'rotationRate' of undefined
47 FAIL event.interval == null should be true. Threw exception TypeError: Cannot re ad property 'interval' of undefined
44 event.initDeviceMotionEvent('', false, false, [], [], [], []) 48 event.initDeviceMotionEvent('', false, false, [], [], [], [])
45 PASS event.acceleration == null is true 49 FAIL event.initDeviceMotionEvent('', false, false, [], [], [], []) threw excepti on TypeError: Cannot call method 'initDeviceMotionEvent' of undefined
46 PASS event.accelerationIncludingGravity == null is true 50 FAIL event.acceleration == null should be true. Threw exception TypeError: Canno t read property 'acceleration' of undefined
47 PASS event.rotationRate == null is true 51 FAIL event.accelerationIncludingGravity == null should be true. Threw exception TypeError: Cannot read property 'accelerationIncludingGravity' of undefined
48 PASS event.interval == 0 is true 52 FAIL event.rotationRate == null should be true. Threw exception TypeError: Canno t read property 'rotationRate' of undefined
53 FAIL event.interval == 0 should be true. Threw exception TypeError: Cannot read property 'interval' of undefined
49 event.initDeviceMotionEvent('', false, false, undefined, undefined, undefined, u ndefined) 54 event.initDeviceMotionEvent('', false, false, undefined, undefined, undefined, u ndefined)
50 PASS event.acceleration == null is true 55 FAIL event.initDeviceMotionEvent('', false, false, undefined, undefined, undefin ed, undefined) threw exception TypeError: Cannot call method 'initDeviceMotionEv ent' of undefined
51 PASS event.accelerationIncludingGravity == null is true 56 FAIL event.acceleration == null should be true. Threw exception TypeError: Canno t read property 'acceleration' of undefined
52 PASS event.rotationRate == null is true 57 FAIL event.accelerationIncludingGravity == null should be true. Threw exception TypeError: Cannot read property 'accelerationIncludingGravity' of undefined
53 PASS event.interval == null is true 58 FAIL event.rotationRate == null should be true. Threw exception TypeError: Canno t read property 'rotationRate' of undefined
59 FAIL event.interval == null should be true. Threw exception TypeError: Cannot re ad property 'interval' of undefined
54 event.initDeviceMotionEvent('', false, false, '', '', '', '') 60 event.initDeviceMotionEvent('', false, false, '', '', '', '')
55 PASS event.acceleration == null is true 61 FAIL event.initDeviceMotionEvent('', false, false, '', '', '', '') threw excepti on TypeError: Cannot call method 'initDeviceMotionEvent' of undefined
56 PASS event.accelerationIncludingGravity == null is true 62 FAIL event.acceleration == null should be true. Threw exception TypeError: Canno t read property 'acceleration' of undefined
57 PASS event.rotationRate == null is true 63 FAIL event.accelerationIncludingGravity == null should be true. Threw exception TypeError: Cannot read property 'accelerationIncludingGravity' of undefined
58 PASS event.interval == 0 is true 64 FAIL event.rotationRate == null should be true. Threw exception TypeError: Canno t read property 'rotationRate' of undefined
65 FAIL event.interval == 0 should be true. Threw exception TypeError: Cannot read property 'interval' of undefined
59 event.initDeviceMotionEvent('', false, false, null, null, null, null) 66 event.initDeviceMotionEvent('', false, false, null, null, null, null)
60 PASS event.acceleration == null is true 67 FAIL event.initDeviceMotionEvent('', false, false, null, null, null, null) threw exception TypeError: Cannot call method 'initDeviceMotionEvent' of undefined
61 PASS event.accelerationIncludingGravity == null is true 68 FAIL event.acceleration == null should be true. Threw exception TypeError: Canno t read property 'acceleration' of undefined
62 PASS event.rotationRate == null is true 69 FAIL event.accelerationIncludingGravity == null should be true. Threw exception TypeError: Cannot read property 'accelerationIncludingGravity' of undefined
63 PASS event.interval == null is true 70 FAIL event.rotationRate == null should be true. Threw exception TypeError: Canno t read property 'rotationRate' of undefined
71 FAIL event.interval == null should be true. Threw exception TypeError: Cannot re ad property 'interval' of undefined
64 event.initDeviceMotionEvent('', false, false, {x: null, y: null, z: null}, {x: n ull, y: null, z: null}, {alpha: null, beta: null, gamma: null}, null) 72 event.initDeviceMotionEvent('', false, false, {x: null, y: null, z: null}, {x: n ull, y: null, z: null}, {alpha: null, beta: null, gamma: null}, null)
65 PASS event.acceleration == null is true 73 FAIL event.initDeviceMotionEvent('', false, false, {x: null, y: null, z: null}, {x: null, y: null, z: null}, {alpha: null, beta: null, gamma: null}, null) threw exception TypeError: Cannot call method 'initDeviceMotionEvent' of undefined
66 PASS event.accelerationIncludingGravity == null is true 74 FAIL event.acceleration == null should be true. Threw exception TypeError: Canno t read property 'acceleration' of undefined
67 PASS event.rotationRate == null is true 75 FAIL event.accelerationIncludingGravity == null should be true. Threw exception TypeError: Cannot read property 'accelerationIncludingGravity' of undefined
68 PASS event.interval == null is true 76 FAIL event.rotationRate == null should be true. Threw exception TypeError: Canno t read property 'rotationRate' of undefined
77 FAIL event.interval == null should be true. Threw exception TypeError: Cannot re ad property 'interval' of undefined
69 event.initDeviceMotionEvent('', false, false, {x: null, y: null, z: 1}, {x: null , y: null, z: 2}, {alpha: null, beta: null, gamma: 3}, null) 78 event.initDeviceMotionEvent('', false, false, {x: null, y: null, z: 1}, {x: null , y: null, z: 2}, {alpha: null, beta: null, gamma: 3}, null)
70 PASS event.acceleration.x == null is true 79 FAIL event.initDeviceMotionEvent('', false, false, {x: null, y: null, z: 1}, {x: null, y: null, z: 2}, {alpha: null, beta: null, gamma: 3}, null) threw exceptio n TypeError: Cannot call method 'initDeviceMotionEvent' of undefined
71 PASS event.acceleration.y == null is true 80 FAIL event.acceleration.x == null should be true. Threw exception TypeError: Can not read property 'acceleration' of undefined
72 PASS event.acceleration.z == 1 is true 81 FAIL event.acceleration.y == null should be true. Threw exception TypeError: Can not read property 'acceleration' of undefined
73 PASS event.accelerationIncludingGravity.x == null is true 82 FAIL event.acceleration.z == 1 should be true. Threw exception TypeError: Cannot read property 'acceleration' of undefined
74 PASS event.accelerationIncludingGravity.y == null is true 83 FAIL event.accelerationIncludingGravity.x == null should be true. Threw exceptio n TypeError: Cannot read property 'accelerationIncludingGravity' of undefined
75 PASS event.accelerationIncludingGravity.z == 2 is true 84 FAIL event.accelerationIncludingGravity.y == null should be true. Threw exceptio n TypeError: Cannot read property 'accelerationIncludingGravity' of undefined
76 PASS event.rotationRate.alpha == null is true 85 FAIL event.accelerationIncludingGravity.z == 2 should be true. Threw exception T ypeError: Cannot read property 'accelerationIncludingGravity' of undefined
77 PASS event.rotationRate.beta == null is true 86 FAIL event.rotationRate.alpha == null should be true. Threw exception TypeError: Cannot read property 'rotationRate' of undefined
78 PASS event.rotationRate.gamma == 3 is true 87 FAIL event.rotationRate.beta == null should be true. Threw exception TypeError: Cannot read property 'rotationRate' of undefined
79 PASS event.interval == null is true 88 FAIL event.rotationRate.gamma == 3 should be true. Threw exception TypeError: Ca nnot read property 'rotationRate' of undefined
89 FAIL event.interval == null should be true. Threw exception TypeError: Cannot re ad property 'interval' of undefined
80 event.initDeviceMotionEvent('', false, false, {x: undefined, y: undefined, z: un defined}, {x: undefined, y: undefined, z: undefined}, {alpha: undefined, beta: u ndefined, gamma: undefined}, undefined) 90 event.initDeviceMotionEvent('', false, false, {x: undefined, y: undefined, z: un defined}, {x: undefined, y: undefined, z: undefined}, {alpha: undefined, beta: u ndefined, gamma: undefined}, undefined)
81 PASS event.acceleration == null is true 91 FAIL event.initDeviceMotionEvent('', false, false, {x: undefined, y: undefined, z: undefined}, {x: undefined, y: undefined, z: undefined}, {alpha: undefined, be ta: undefined, gamma: undefined}, undefined) threw exception TypeError: Cannot c all method 'initDeviceMotionEvent' of undefined
82 PASS event.accelerationIncludingGravity == null is true 92 FAIL event.acceleration == null should be true. Threw exception TypeError: Canno t read property 'acceleration' of undefined
83 PASS event.rotationRate == null is true 93 FAIL event.accelerationIncludingGravity == null should be true. Threw exception TypeError: Cannot read property 'accelerationIncludingGravity' of undefined
84 PASS event.interval == null is true 94 FAIL event.rotationRate == null should be true. Threw exception TypeError: Canno t read property 'rotationRate' of undefined
95 FAIL event.interval == null should be true. Threw exception TypeError: Cannot re ad property 'interval' of undefined
85 event.initDeviceMotionEvent('', false, false, {x: undefined, y: undefined, z: 1} , {x: undefined, y: undefined, z: 2}, {alpha: undefined, beta: undefined, gamma: 3}, undefined) 96 event.initDeviceMotionEvent('', false, false, {x: undefined, y: undefined, z: 1} , {x: undefined, y: undefined, z: 2}, {alpha: undefined, beta: undefined, gamma: 3}, undefined)
86 PASS event.acceleration.x == null is true 97 FAIL event.initDeviceMotionEvent('', false, false, {x: undefined, y: undefined, z: 1}, {x: undefined, y: undefined, z: 2}, {alpha: undefined, beta: undefined, g amma: 3}, undefined) threw exception TypeError: Cannot call method 'initDeviceMo tionEvent' of undefined
87 PASS event.acceleration.y == null is true 98 FAIL event.acceleration.x == null should be true. Threw exception TypeError: Can not read property 'acceleration' of undefined
88 PASS event.acceleration.z == 1 is true 99 FAIL event.acceleration.y == null should be true. Threw exception TypeError: Can not read property 'acceleration' of undefined
89 PASS event.accelerationIncludingGravity.x == null is true 100 FAIL event.acceleration.z == 1 should be true. Threw exception TypeError: Cannot read property 'acceleration' of undefined
90 PASS event.accelerationIncludingGravity.y == null is true 101 FAIL event.accelerationIncludingGravity.x == null should be true. Threw exceptio n TypeError: Cannot read property 'accelerationIncludingGravity' of undefined
91 PASS event.accelerationIncludingGravity.z == 2 is true 102 FAIL event.accelerationIncludingGravity.y == null should be true. Threw exceptio n TypeError: Cannot read property 'accelerationIncludingGravity' of undefined
92 PASS event.rotationRate.alpha == null is true 103 FAIL event.accelerationIncludingGravity.z == 2 should be true. Threw exception T ypeError: Cannot read property 'accelerationIncludingGravity' of undefined
93 PASS event.rotationRate.beta == null is true 104 FAIL event.rotationRate.alpha == null should be true. Threw exception TypeError: Cannot read property 'rotationRate' of undefined
94 PASS event.rotationRate.gamma == 3 is true 105 FAIL event.rotationRate.beta == null should be true. Threw exception TypeError: Cannot read property 'rotationRate' of undefined
95 PASS event.interval == null is true 106 FAIL event.rotationRate.gamma == 3 should be true. Threw exception TypeError: Ca nnot read property 'rotationRate' of undefined
107 FAIL event.interval == null should be true. Threw exception TypeError: Cannot re ad property 'interval' of undefined
96 PASS successfullyParsed is true 108 PASS successfullyParsed is true
97 109
98 TEST COMPLETE 110 TEST COMPLETE
99 111
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698