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

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

Issue 16020003: Blink-side Device Motion API testing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed window-property layout test 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/DeviceMotion/optional-event-properties-expected.txt
diff --git a/LayoutTests/fast/dom/DeviceMotion/optional-event-properties-expected.txt b/LayoutTests/fast/dom/DeviceMotion/optional-event-properties-expected.txt
index 9d9fd60c7eaf80297c54f15de1e0ad4a61004298..c2230b2922291c2da28be2ee7fadc30628804292 100644
--- a/LayoutTests/fast/dom/DeviceMotion/optional-event-properties-expected.txt
+++ b/LayoutTests/fast/dom/DeviceMotion/optional-event-properties-expected.txt
@@ -9,100 +9,89 @@ PASS event.accelerationIncludingGravity == null is true
PASS event.rotationRate == null is true
PASS event.interval == null is true
event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, {x: 3, y: 4, z: 5}, {alpha: 6, beta: 7, gamma: 8}, 9)
-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: Object [object ] has no method 'initDeviceMotionEvent'
-FAIL event.acceleration.x == 0 should be true. Threw exception TypeError: Cannot read property 'x' of undefined
-FAIL event.acceleration.y == 1 should be true. Threw exception TypeError: Cannot read property 'y' of undefined
-FAIL event.acceleration.z == 2 should be true. Threw exception TypeError: Cannot read property 'z' of undefined
-FAIL event.accelerationIncludingGravity.x == 3 should be true. Threw exception TypeError: Cannot read property 'x' of undefined
-FAIL event.accelerationIncludingGravity.y == 4 should be true. Threw exception TypeError: Cannot read property 'y' of undefined
-FAIL event.accelerationIncludingGravity.z == 5 should be true. Threw exception TypeError: Cannot read property 'z' of undefined
-FAIL event.rotationRate.alpha == 6 should be true. Threw exception TypeError: Cannot read property 'alpha' of undefined
-FAIL event.rotationRate.beta == 7 should be true. Threw exception TypeError: Cannot read property 'beta' of undefined
-FAIL event.rotationRate.gamma == 8 should be true. Threw exception TypeError: Cannot read property 'gamma' of undefined
-FAIL event.interval == 9 should be true. Was false.
-FAIL event.initDeviceMotionEvent('', false, false, objectThrowingException, {x: 3, z: 5}, {gamma: 8, beta: 7}, 9) should throw Error: x getter exception. Threw exception TypeError: Object [object ] has no method 'initDeviceMotionEvent'.
-FAIL event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, objectThrowingException, {gamma: 8, beta: 7}, 9) should throw Error: x getter exception. Threw exception TypeError: Object [object ] has no method 'initDeviceMotionEvent'.
-FAIL event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, {x: 3, z: 5}, objectThrowingException, 9) should throw Error: alpha getter exception. Threw exception TypeError: Object [object ] has no method 'initDeviceMotionEvent'.
-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: Object [object ] has no method 'initDeviceMotionEvent'.
-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: Object [object ] has no method 'initDeviceMotionEvent'.
-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: Object [object ] has no method 'initDeviceMotionEvent'.
+PASS event.acceleration.x == 0 is true
+PASS event.acceleration.y == 1 is true
+PASS event.acceleration.z == 2 is true
+PASS event.accelerationIncludingGravity.x == 3 is true
+PASS event.accelerationIncludingGravity.y == 4 is true
+PASS event.accelerationIncludingGravity.z == 5 is true
+PASS event.rotationRate.alpha == 6 is true
+PASS event.rotationRate.beta == 7 is true
+PASS event.rotationRate.gamma == 8 is true
+PASS event.interval == 9 is true
+PASS event.initDeviceMotionEvent('', false, false, objectThrowingException, {x: 3, z: 5}, {gamma: 8, beta: 7}, 9) threw exception Error: x getter exception.
+PASS event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, objectThrowingException, {gamma: 8, beta: 7}, 9) threw exception Error: x getter exception.
+PASS event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, {x: 3, z: 5}, objectThrowingException, 9) threw exception Error: alpha getter exception.
+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 exception Error: valueOf threw exception.
+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 exception Error: valueOf threw exception.
+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 exception Error: valueOf threw exception.
event.initDeviceMotionEvent('', false, false, {y: 1, x: 0}, {x: 3, z: 5}, {gamma: 8, beta: 7}, 9)
-FAIL event.initDeviceMotionEvent('', false, false, {y: 1, x: 0}, {x: 3, z: 5}, {gamma: 8, beta: 7}, 9) threw exception TypeError: Object [object ] has no method 'initDeviceMotionEvent'
-FAIL event.acceleration.x == 0 should be true. Threw exception TypeError: Cannot read property 'x' of undefined
-FAIL event.acceleration.y == 1 should be true. Threw exception TypeError: Cannot read property 'y' of undefined
-FAIL event.acceleration.z == null should be true. Threw exception TypeError: Cannot read property 'z' of undefined
-FAIL event.accelerationIncludingGravity.x == 3 should be true. Threw exception TypeError: Cannot read property 'x' of undefined
-FAIL event.accelerationIncludingGravity.y == null should be true. Threw exception TypeError: Cannot read property 'y' of undefined
-FAIL event.accelerationIncludingGravity.z == 5 should be true. Threw exception TypeError: Cannot read property 'z' of undefined
-FAIL event.rotationRate.alpha == null should be true. Threw exception TypeError: Cannot read property 'alpha' of undefined
-FAIL event.rotationRate.beta == 7 should be true. Threw exception TypeError: Cannot read property 'beta' of undefined
-FAIL event.rotationRate.gamma == 8 should be true. Threw exception TypeError: Cannot read property 'gamma' of undefined
-FAIL event.interval == 9 should be true. Was false.
+PASS event.acceleration.x == 0 is true
+PASS event.acceleration.y == 1 is true
+PASS event.acceleration.z == null is true
+PASS event.accelerationIncludingGravity.x == 3 is true
+PASS event.accelerationIncludingGravity.y == null is true
+PASS event.accelerationIncludingGravity.z == 5 is true
+PASS event.rotationRate.alpha == null is true
+PASS event.rotationRate.beta == 7 is true
+PASS event.rotationRate.gamma == 8 is true
+PASS event.interval == 9 is true
event.initDeviceMotionEvent()
-FAIL event.initDeviceMotionEvent() threw exception TypeError: Object [object ] has no method 'initDeviceMotionEvent'
PASS event.acceleration == null is true
PASS event.accelerationIncludingGravity == null is true
PASS event.rotationRate == null is true
PASS event.interval == null is true
event.initDeviceMotionEvent('', false, false, [], [], [], [])
-FAIL event.initDeviceMotionEvent('', false, false, [], [], [], []) threw exception TypeError: Object [object ] has no method 'initDeviceMotionEvent'
PASS event.acceleration == null is true
PASS event.accelerationIncludingGravity == null is true
PASS event.rotationRate == null is true
-FAIL event.interval == 0 should be true. Was false.
+PASS event.interval == 0 is true
event.initDeviceMotionEvent('', false, false, undefined, undefined, undefined, undefined)
-FAIL event.initDeviceMotionEvent('', false, false, undefined, undefined, undefined, undefined) threw exception TypeError: Object [object ] has no method 'initDeviceMotionEvent'
PASS event.acceleration == null is true
PASS event.accelerationIncludingGravity == null is true
PASS event.rotationRate == null is true
PASS event.interval == null is true
event.initDeviceMotionEvent('', false, false, '', '', '', '')
-FAIL event.initDeviceMotionEvent('', false, false, '', '', '', '') threw exception TypeError: Object [object ] has no method 'initDeviceMotionEvent'
PASS event.acceleration == null is true
PASS event.accelerationIncludingGravity == null is true
PASS event.rotationRate == null is true
-FAIL event.interval == 0 should be true. Was false.
+PASS event.interval == 0 is true
event.initDeviceMotionEvent('', false, false, null, null, null, null)
-FAIL event.initDeviceMotionEvent('', false, false, null, null, null, null) threw exception TypeError: Object [object ] has no method 'initDeviceMotionEvent'
PASS event.acceleration == null is true
PASS event.accelerationIncludingGravity == null is true
PASS event.rotationRate == null is true
PASS event.interval == null is true
event.initDeviceMotionEvent('', false, false, {x: null, y: null, z: null}, {x: null, y: null, z: null}, {alpha: null, beta: null, gamma: null}, null)
-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: Object [object ] has no method 'initDeviceMotionEvent'
PASS event.acceleration == null is true
PASS event.accelerationIncludingGravity == null is true
PASS event.rotationRate == null is true
PASS event.interval == null is true
event.initDeviceMotionEvent('', false, false, {x: null, y: null, z: 1}, {x: null, y: null, z: 2}, {alpha: null, beta: null, gamma: 3}, null)
-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 exception TypeError: Object [object ] has no method 'initDeviceMotionEvent'
-FAIL event.acceleration.x == null should be true. Threw exception TypeError: Cannot read property 'x' of undefined
-FAIL event.acceleration.y == null should be true. Threw exception TypeError: Cannot read property 'y' of undefined
-FAIL event.acceleration.z == 1 should be true. Threw exception TypeError: Cannot read property 'z' of undefined
-FAIL event.accelerationIncludingGravity.x == null should be true. Threw exception TypeError: Cannot read property 'x' of undefined
-FAIL event.accelerationIncludingGravity.y == null should be true. Threw exception TypeError: Cannot read property 'y' of undefined
-FAIL event.accelerationIncludingGravity.z == 2 should be true. Threw exception TypeError: Cannot read property 'z' of undefined
-FAIL event.rotationRate.alpha == null should be true. Threw exception TypeError: Cannot read property 'alpha' of undefined
-FAIL event.rotationRate.beta == null should be true. Threw exception TypeError: Cannot read property 'beta' of undefined
-FAIL event.rotationRate.gamma == 3 should be true. Threw exception TypeError: Cannot read property 'gamma' of undefined
+PASS event.acceleration.x == null is true
+PASS event.acceleration.y == null is true
+PASS event.acceleration.z == 1 is true
+PASS event.accelerationIncludingGravity.x == null is true
+PASS event.accelerationIncludingGravity.y == null is true
+PASS event.accelerationIncludingGravity.z == 2 is true
+PASS event.rotationRate.alpha == null is true
+PASS event.rotationRate.beta == null is true
+PASS event.rotationRate.gamma == 3 is true
PASS event.interval == null is true
event.initDeviceMotionEvent('', false, false, {x: undefined, y: undefined, z: undefined}, {x: undefined, y: undefined, z: undefined}, {alpha: undefined, beta: undefined, gamma: undefined}, undefined)
-FAIL event.initDeviceMotionEvent('', false, false, {x: undefined, y: undefined, z: undefined}, {x: undefined, y: undefined, z: undefined}, {alpha: undefined, beta: undefined, gamma: undefined}, undefined) threw exception TypeError: Object [object ] has no method 'initDeviceMotionEvent'
PASS event.acceleration == null is true
PASS event.accelerationIncludingGravity == null is true
PASS event.rotationRate == null is true
PASS event.interval == null is true
event.initDeviceMotionEvent('', false, false, {x: undefined, y: undefined, z: 1}, {x: undefined, y: undefined, z: 2}, {alpha: undefined, beta: undefined, gamma: 3}, undefined)
-FAIL event.initDeviceMotionEvent('', false, false, {x: undefined, y: undefined, z: 1}, {x: undefined, y: undefined, z: 2}, {alpha: undefined, beta: undefined, gamma: 3}, undefined) threw exception TypeError: Object [object ] has no method 'initDeviceMotionEvent'
-FAIL event.acceleration.x == null should be true. Threw exception TypeError: Cannot read property 'x' of undefined
-FAIL event.acceleration.y == null should be true. Threw exception TypeError: Cannot read property 'y' of undefined
-FAIL event.acceleration.z == 1 should be true. Threw exception TypeError: Cannot read property 'z' of undefined
-FAIL event.accelerationIncludingGravity.x == null should be true. Threw exception TypeError: Cannot read property 'x' of undefined
-FAIL event.accelerationIncludingGravity.y == null should be true. Threw exception TypeError: Cannot read property 'y' of undefined
-FAIL event.accelerationIncludingGravity.z == 2 should be true. Threw exception TypeError: Cannot read property 'z' of undefined
-FAIL event.rotationRate.alpha == null should be true. Threw exception TypeError: Cannot read property 'alpha' of undefined
-FAIL event.rotationRate.beta == null should be true. Threw exception TypeError: Cannot read property 'beta' of undefined
-FAIL event.rotationRate.gamma == 3 should be true. Threw exception TypeError: Cannot read property 'gamma' of undefined
+PASS event.acceleration.x == null is true
+PASS event.acceleration.y == null is true
+PASS event.acceleration.z == 1 is true
+PASS event.accelerationIncludingGravity.x == null is true
+PASS event.accelerationIncludingGravity.y == null is true
+PASS event.accelerationIncludingGravity.z == 2 is true
+PASS event.rotationRate.alpha == null is true
+PASS event.rotationRate.beta == null is true
+PASS event.rotationRate.gamma == 3 is true
PASS event.interval == null is true
PASS successfullyParsed is true

Powered by Google App Engine
This is Rietveld 408576698