| OLD | NEW |
| 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 PASS event.acceleration == null is true |
| 8 PASS event.accelerationIncludingGravity == null is true | 8 PASS event.accelerationIncludingGravity == null is true |
| 9 PASS event.rotationRate == null is true | 9 PASS event.rotationRate == null is true |
| 10 PASS event.interval == null is true | 10 PASS event.interval == null is true |
| 11 event.initDeviceMotionEvent('', false, false, {x: 0, y: 1, z: 2}, {x: 3, y: 4, z
: 5}, {alpha: 6, beta: 7, gamma: 8}, 9) | 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 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' | 12 PASS event.acceleration.x == 0 is true |
| 13 FAIL event.acceleration.x == 0 should be true. Threw exception TypeError: Cannot
read property 'x' of undefined | 13 PASS event.acceleration.y == 1 is true |
| 14 FAIL event.acceleration.y == 1 should be true. Threw exception TypeError: Cannot
read property 'y' of undefined | 14 PASS event.acceleration.z == 2 is true |
| 15 FAIL event.acceleration.z == 2 should be true. Threw exception TypeError: Cannot
read property 'z' of undefined | 15 PASS event.accelerationIncludingGravity.x == 3 is true |
| 16 FAIL event.accelerationIncludingGravity.x == 3 should be true. Threw exception T
ypeError: Cannot read property 'x' of undefined | 16 PASS event.accelerationIncludingGravity.y == 4 is true |
| 17 FAIL event.accelerationIncludingGravity.y == 4 should be true. Threw exception T
ypeError: Cannot read property 'y' of undefined | 17 PASS event.accelerationIncludingGravity.z == 5 is true |
| 18 FAIL event.accelerationIncludingGravity.z == 5 should be true. Threw exception T
ypeError: Cannot read property 'z' of undefined | 18 PASS event.rotationRate.alpha == 6 is true |
| 19 FAIL event.rotationRate.alpha == 6 should be true. Threw exception TypeError: Ca
nnot read property 'alpha' of undefined | 19 PASS event.rotationRate.beta == 7 is true |
| 20 FAIL event.rotationRate.beta == 7 should be true. Threw exception TypeError: Can
not read property 'beta' of undefined | 20 PASS event.rotationRate.gamma == 8 is true |
| 21 FAIL event.rotationRate.gamma == 8 should be true. Threw exception TypeError: Ca
nnot read property 'gamma' of undefined | 21 PASS event.interval == 9 is true |
| 22 FAIL event.interval == 9 should be true. Was false. | 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.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'. | 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, {x: 0, y: 1, z: 2}, objectThr
owingException, {gamma: 8, beta: 7}, 9) should throw Error: x getter exception.
Threw exception TypeError: Object [object ] has no method 'initDeviceMotionEvent
'. | 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}, {x: 3, z:
5}, objectThrowingException, 9) should throw Error: alpha getter exception. Thr
ew exception TypeError: Object [object ] has no method 'initDeviceMotionEvent'. | 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: 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'. | 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: 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'. | 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:
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'. | |
| 29 event.initDeviceMotionEvent('', false, false, {y: 1, x: 0}, {x: 3, z: 5}, {gamma
: 8, beta: 7}, 9) | 28 event.initDeviceMotionEvent('', false, false, {y: 1, x: 0}, {x: 3, z: 5}, {gamma
: 8, beta: 7}, 9) |
| 30 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' | 29 PASS event.acceleration.x == 0 is true |
| 31 FAIL event.acceleration.x == 0 should be true. Threw exception TypeError: Cannot
read property 'x' of undefined | 30 PASS event.acceleration.y == 1 is true |
| 32 FAIL event.acceleration.y == 1 should be true. Threw exception TypeError: Cannot
read property 'y' of undefined | 31 PASS event.acceleration.z == null is true |
| 33 FAIL event.acceleration.z == null should be true. Threw exception TypeError: Can
not read property 'z' of undefined | 32 PASS event.accelerationIncludingGravity.x == 3 is true |
| 34 FAIL event.accelerationIncludingGravity.x == 3 should be true. Threw exception T
ypeError: Cannot read property 'x' of undefined | 33 PASS event.accelerationIncludingGravity.y == null is true |
| 35 FAIL event.accelerationIncludingGravity.y == null should be true. Threw exceptio
n TypeError: Cannot read property 'y' of undefined | 34 PASS event.accelerationIncludingGravity.z == 5 is true |
| 36 FAIL event.accelerationIncludingGravity.z == 5 should be true. Threw exception T
ypeError: Cannot read property 'z' of undefined | 35 PASS event.rotationRate.alpha == null is true |
| 37 FAIL event.rotationRate.alpha == null should be true. Threw exception TypeError:
Cannot read property 'alpha' of undefined | 36 PASS event.rotationRate.beta == 7 is true |
| 38 FAIL event.rotationRate.beta == 7 should be true. Threw exception TypeError: Can
not read property 'beta' of undefined | 37 PASS event.rotationRate.gamma == 8 is true |
| 39 FAIL event.rotationRate.gamma == 8 should be true. Threw exception TypeError: Ca
nnot read property 'gamma' of undefined | 38 PASS event.interval == 9 is true |
| 40 FAIL event.interval == 9 should be true. Was false. | |
| 41 event.initDeviceMotionEvent() | 39 event.initDeviceMotionEvent() |
| 42 FAIL event.initDeviceMotionEvent() threw exception TypeError: Object [object ] h
as no method 'initDeviceMotionEvent' | |
| 43 PASS event.acceleration == null is true | 40 PASS event.acceleration == null is true |
| 44 PASS event.accelerationIncludingGravity == null is true | 41 PASS event.accelerationIncludingGravity == null is true |
| 45 PASS event.rotationRate == null is true | 42 PASS event.rotationRate == null is true |
| 46 PASS event.interval == null is true | 43 PASS event.interval == null is true |
| 47 event.initDeviceMotionEvent('', false, false, [], [], [], []) | 44 event.initDeviceMotionEvent('', false, false, [], [], [], []) |
| 48 FAIL event.initDeviceMotionEvent('', false, false, [], [], [], []) threw excepti
on TypeError: Object [object ] has no method 'initDeviceMotionEvent' | |
| 49 PASS event.acceleration == null is true | 45 PASS event.acceleration == null is true |
| 50 PASS event.accelerationIncludingGravity == null is true | 46 PASS event.accelerationIncludingGravity == null is true |
| 51 PASS event.rotationRate == null is true | 47 PASS event.rotationRate == null is true |
| 52 FAIL event.interval == 0 should be true. Was false. | 48 PASS event.interval == 0 is true |
| 53 event.initDeviceMotionEvent('', false, false, undefined, undefined, undefined, u
ndefined) | 49 event.initDeviceMotionEvent('', false, false, undefined, undefined, undefined, u
ndefined) |
| 54 FAIL event.initDeviceMotionEvent('', false, false, undefined, undefined, undefin
ed, undefined) threw exception TypeError: Object [object ] has no method 'initDe
viceMotionEvent' | |
| 55 PASS event.acceleration == null is true | 50 PASS event.acceleration == null is true |
| 56 PASS event.accelerationIncludingGravity == null is true | 51 PASS event.accelerationIncludingGravity == null is true |
| 57 PASS event.rotationRate == null is true | 52 PASS event.rotationRate == null is true |
| 58 PASS event.interval == null is true | 53 PASS event.interval == null is true |
| 59 event.initDeviceMotionEvent('', false, false, '', '', '', '') | 54 event.initDeviceMotionEvent('', false, false, '', '', '', '') |
| 60 FAIL event.initDeviceMotionEvent('', false, false, '', '', '', '') threw excepti
on TypeError: Object [object ] has no method 'initDeviceMotionEvent' | |
| 61 PASS event.acceleration == null is true | 55 PASS event.acceleration == null is true |
| 62 PASS event.accelerationIncludingGravity == null is true | 56 PASS event.accelerationIncludingGravity == null is true |
| 63 PASS event.rotationRate == null is true | 57 PASS event.rotationRate == null is true |
| 64 FAIL event.interval == 0 should be true. Was false. | 58 PASS event.interval == 0 is true |
| 65 event.initDeviceMotionEvent('', false, false, null, null, null, null) | 59 event.initDeviceMotionEvent('', false, false, null, null, null, null) |
| 66 FAIL event.initDeviceMotionEvent('', false, false, null, null, null, null) threw
exception TypeError: Object [object ] has no method 'initDeviceMotionEvent' | |
| 67 PASS event.acceleration == null is true | 60 PASS event.acceleration == null is true |
| 68 PASS event.accelerationIncludingGravity == null is true | 61 PASS event.accelerationIncludingGravity == null is true |
| 69 PASS event.rotationRate == null is true | 62 PASS event.rotationRate == null is true |
| 70 PASS event.interval == null is true | 63 PASS event.interval == null is true |
| 71 event.initDeviceMotionEvent('', false, false, {x: null, y: null, z: null}, {x: n
ull, y: null, z: null}, {alpha: null, beta: null, gamma: null}, null) | 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 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' | |
| 73 PASS event.acceleration == null is true | 65 PASS event.acceleration == null is true |
| 74 PASS event.accelerationIncludingGravity == null is true | 66 PASS event.accelerationIncludingGravity == null is true |
| 75 PASS event.rotationRate == null is true | 67 PASS event.rotationRate == null is true |
| 76 PASS event.interval == null is true | 68 PASS event.interval == null is true |
| 77 event.initDeviceMotionEvent('', false, false, {x: null, y: null, z: 1}, {x: null
, y: null, z: 2}, {alpha: null, beta: null, gamma: 3}, null) | 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 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: Object [object ] has no method 'initDeviceMotionEvent' | 70 PASS event.acceleration.x == null is true |
| 79 FAIL event.acceleration.x == null should be true. Threw exception TypeError: Can
not read property 'x' of undefined | 71 PASS event.acceleration.y == null is true |
| 80 FAIL event.acceleration.y == null should be true. Threw exception TypeError: Can
not read property 'y' of undefined | 72 PASS event.acceleration.z == 1 is true |
| 81 FAIL event.acceleration.z == 1 should be true. Threw exception TypeError: Cannot
read property 'z' of undefined | 73 PASS event.accelerationIncludingGravity.x == null is true |
| 82 FAIL event.accelerationIncludingGravity.x == null should be true. Threw exceptio
n TypeError: Cannot read property 'x' of undefined | 74 PASS event.accelerationIncludingGravity.y == null is true |
| 83 FAIL event.accelerationIncludingGravity.y == null should be true. Threw exceptio
n TypeError: Cannot read property 'y' of undefined | 75 PASS event.accelerationIncludingGravity.z == 2 is true |
| 84 FAIL event.accelerationIncludingGravity.z == 2 should be true. Threw exception T
ypeError: Cannot read property 'z' of undefined | 76 PASS event.rotationRate.alpha == null is true |
| 85 FAIL event.rotationRate.alpha == null should be true. Threw exception TypeError:
Cannot read property 'alpha' of undefined | 77 PASS event.rotationRate.beta == null is true |
| 86 FAIL event.rotationRate.beta == null should be true. Threw exception TypeError:
Cannot read property 'beta' of undefined | 78 PASS event.rotationRate.gamma == 3 is true |
| 87 FAIL event.rotationRate.gamma == 3 should be true. Threw exception TypeError: Ca
nnot read property 'gamma' of undefined | |
| 88 PASS event.interval == null is true | 79 PASS event.interval == null is true |
| 89 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) | 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 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: Object [
object ] has no method 'initDeviceMotionEvent' | |
| 91 PASS event.acceleration == null is true | 81 PASS event.acceleration == null is true |
| 92 PASS event.accelerationIncludingGravity == null is true | 82 PASS event.accelerationIncludingGravity == null is true |
| 93 PASS event.rotationRate == null is true | 83 PASS event.rotationRate == null is true |
| 94 PASS event.interval == null is true | 84 PASS event.interval == null is true |
| 95 event.initDeviceMotionEvent('', false, false, {x: undefined, y: undefined, z: 1}
, {x: undefined, y: undefined, z: 2}, {alpha: undefined, beta: undefined, gamma:
3}, 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 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: Object [object ] has no method '
initDeviceMotionEvent' | 86 PASS event.acceleration.x == null is true |
| 97 FAIL event.acceleration.x == null should be true. Threw exception TypeError: Can
not read property 'x' of undefined | 87 PASS event.acceleration.y == null is true |
| 98 FAIL event.acceleration.y == null should be true. Threw exception TypeError: Can
not read property 'y' of undefined | 88 PASS event.acceleration.z == 1 is true |
| 99 FAIL event.acceleration.z == 1 should be true. Threw exception TypeError: Cannot
read property 'z' of undefined | 89 PASS event.accelerationIncludingGravity.x == null is true |
| 100 FAIL event.accelerationIncludingGravity.x == null should be true. Threw exceptio
n TypeError: Cannot read property 'x' of undefined | 90 PASS event.accelerationIncludingGravity.y == null is true |
| 101 FAIL event.accelerationIncludingGravity.y == null should be true. Threw exceptio
n TypeError: Cannot read property 'y' of undefined | 91 PASS event.accelerationIncludingGravity.z == 2 is true |
| 102 FAIL event.accelerationIncludingGravity.z == 2 should be true. Threw exception T
ypeError: Cannot read property 'z' of undefined | 92 PASS event.rotationRate.alpha == null is true |
| 103 FAIL event.rotationRate.alpha == null should be true. Threw exception TypeError:
Cannot read property 'alpha' of undefined | 93 PASS event.rotationRate.beta == null is true |
| 104 FAIL event.rotationRate.beta == null should be true. Threw exception TypeError:
Cannot read property 'beta' of undefined | 94 PASS event.rotationRate.gamma == 3 is true |
| 105 FAIL event.rotationRate.gamma == 3 should be true. Threw exception TypeError: Ca
nnot read property 'gamma' of undefined | |
| 106 PASS event.interval == null is true | 95 PASS event.interval == null is true |
| 107 PASS successfullyParsed is true | 96 PASS successfullyParsed is true |
| 108 | 97 |
| 109 TEST COMPLETE | 98 TEST COMPLETE |
| 110 | 99 |
| OLD | NEW |