| 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 == 0 is true |
| 11 event = new DeviceMotionEvent('', {acceleration: {x: 0, y: 1, z: 2}, acceleratio
nIncludingGravity: {x: 3, y: 4, z: 5}, rotationRate: {alpha: 6, beta: 7, gamma:
8}, interval: 9}) | 11 event = new DeviceMotionEvent('', {acceleration: {x: 0, y: 1, z: 2}, acceleratio
nIncludingGravity: {x: 3, y: 4, z: 5}, rotationRate: {alpha: 6, beta: 7, gamma:
8}, interval: 9}) |
| 12 PASS event.acceleration.x == 0 is true | 12 PASS event.acceleration.x == 0 is true |
| 13 PASS event.acceleration.y == 1 is true | 13 PASS event.acceleration.y == 1 is true |
| 14 PASS event.acceleration.z == 2 is true | 14 PASS event.acceleration.z == 2 is true |
| 15 PASS event.accelerationIncludingGravity.x == 3 is true | 15 PASS event.accelerationIncludingGravity.x == 3 is true |
| 16 PASS event.accelerationIncludingGravity.y == 4 is true | 16 PASS event.accelerationIncludingGravity.y == 4 is true |
| 17 PASS event.accelerationIncludingGravity.z == 5 is true | 17 PASS event.accelerationIncludingGravity.z == 5 is true |
| 18 PASS event.rotationRate.alpha == 6 is true | 18 PASS event.rotationRate.alpha == 6 is true |
| 19 PASS event.rotationRate.beta == 7 is true | 19 PASS event.rotationRate.beta == 7 is true |
| 20 PASS event.rotationRate.gamma == 8 is true | 20 PASS event.rotationRate.gamma == 8 is true |
| (...skipping 12 matching lines...) Expand all Loading... |
| 33 PASS event.accelerationIncludingGravity.y == null is true | 33 PASS event.accelerationIncludingGravity.y == null is true |
| 34 PASS event.accelerationIncludingGravity.z == 5 is true | 34 PASS event.accelerationIncludingGravity.z == 5 is true |
| 35 PASS event.rotationRate.alpha == null is true | 35 PASS event.rotationRate.alpha == null is true |
| 36 PASS event.rotationRate.beta == 7 is true | 36 PASS event.rotationRate.beta == 7 is true |
| 37 PASS event.rotationRate.gamma == 8 is true | 37 PASS event.rotationRate.gamma == 8 is true |
| 38 PASS event.interval == 9 is true | 38 PASS event.interval == 9 is true |
| 39 event = new DeviceMotionEvent('') | 39 event = new DeviceMotionEvent('') |
| 40 PASS event.acceleration == null is true | 40 PASS event.acceleration == null is true |
| 41 PASS event.accelerationIncludingGravity == null is true | 41 PASS event.accelerationIncludingGravity == null is true |
| 42 PASS event.rotationRate == null is true | 42 PASS event.rotationRate == null is true |
| 43 PASS event.interval == null is true | 43 PASS event.interval == 0 is true |
| 44 event = new DeviceMotionEvent('', {acceleration: [], accelerationIncludingGravit
y: [], rotationRate: [], interval: []}) | 44 event = new DeviceMotionEvent('', {acceleration: [], accelerationIncludingGravit
y: [], rotationRate: [], interval: []}) |
| 45 PASS event.acceleration.x == null is true | 45 PASS event.acceleration.x == null is true |
| 46 PASS event.acceleration.y == null is true | 46 PASS event.acceleration.y == null is true |
| 47 PASS event.acceleration.z == null is true | 47 PASS event.acceleration.z == null is true |
| 48 PASS event.accelerationIncludingGravity.x == null is true | 48 PASS event.accelerationIncludingGravity.x == null is true |
| 49 PASS event.accelerationIncludingGravity.y == null is true | 49 PASS event.accelerationIncludingGravity.y == null is true |
| 50 PASS event.accelerationIncludingGravity.z == null is true | 50 PASS event.accelerationIncludingGravity.z == null is true |
| 51 PASS event.rotationRate.alpha == null is true | 51 PASS event.rotationRate.alpha == null is true |
| 52 PASS event.rotationRate.beta == null is true | 52 PASS event.rotationRate.beta == null is true |
| 53 PASS event.rotationRate.gamma == null is true | 53 PASS event.rotationRate.gamma == null is true |
| 54 PASS event.interval == 0 is true | 54 PASS event.interval == 0 is true |
| 55 event = new DeviceMotionEvent('', {acceleration: [], accelerationIncludingGravit
y: undefined, rotationRate: undefined, interval: undefined}) | 55 event = new DeviceMotionEvent('', {acceleration: [], accelerationIncludingGravit
y: undefined, rotationRate: undefined, interval: undefined}) |
| 56 PASS event.acceleration.x == null is true | 56 PASS event.acceleration.x == null is true |
| 57 PASS event.acceleration.y == null is true | 57 PASS event.acceleration.y == null is true |
| 58 PASS event.acceleration.z == null is true | 58 PASS event.acceleration.z == null is true |
| 59 PASS event.accelerationIncludingGravity == null is true | 59 PASS event.accelerationIncludingGravity == null is true |
| 60 PASS event.rotationRate == null is true | 60 PASS event.rotationRate == null is true |
| 61 PASS event.interval == null is true | 61 PASS event.interval == 0 is true |
| 62 event = new DeviceMotionEvent('', {acceleration: null, accelerationIncludingGrav
ity: null, rotationRate: null, interval: null}) | 62 event = new DeviceMotionEvent('', {acceleration: null, accelerationIncludingGrav
ity: null, rotationRate: null, interval: null}) |
| 63 PASS event.acceleration == null is true | 63 PASS event.acceleration == null is true |
| 64 PASS event.accelerationIncludingGravity == null is true | 64 PASS event.accelerationIncludingGravity == null is true |
| 65 PASS event.rotationRate == null is true | 65 PASS event.rotationRate == null is true |
| 66 PASS event.interval == null is true | 66 PASS event.interval == 0 is true |
| 67 event = new DeviceMotionEvent('', {acceleration: {x: null, y: null, z: null}, ac
celerationIncludingGravity: {x: null, y: null, z: null}, rotationRate: {alpha: n
ull, beta: null, gamma: null}, interval: null}) | 67 event = new DeviceMotionEvent('', {acceleration: {x: null, y: null, z: null}, ac
celerationIncludingGravity: {x: null, y: null, z: null}, rotationRate: {alpha: n
ull, beta: null, gamma: null}, interval: null}) |
| 68 PASS event.acceleration.x == null is true | 68 PASS event.acceleration.x == null is true |
| 69 PASS event.acceleration.y == null is true | 69 PASS event.acceleration.y == null is true |
| 70 PASS event.acceleration.z == null is true | 70 PASS event.acceleration.z == null is true |
| 71 PASS event.accelerationIncludingGravity.x == null is true | 71 PASS event.accelerationIncludingGravity.x == null is true |
| 72 PASS event.accelerationIncludingGravity.y == null is true | 72 PASS event.accelerationIncludingGravity.y == null is true |
| 73 PASS event.accelerationIncludingGravity.z == null is true | 73 PASS event.accelerationIncludingGravity.z == null is true |
| 74 PASS event.rotationRate.alpha == null is true | 74 PASS event.rotationRate.alpha == null is true |
| 75 PASS event.rotationRate.beta == null is true | 75 PASS event.rotationRate.beta == null is true |
| 76 PASS event.rotationRate.gamma == null is true | 76 PASS event.rotationRate.gamma == null is true |
| 77 PASS event.interval == null is true | 77 PASS event.interval == 0 is true |
| 78 event = new DeviceMotionEvent('', {acceleration: {x: null, y: null, z: 1}, accel
erationIncludingGravity: {x: null, y: null, z: 2}, rotationRate: {alpha: null, b
eta: null, gamma: 3}, interval: null}) | 78 event = new DeviceMotionEvent('', {acceleration: {x: null, y: null, z: 1}, accel
erationIncludingGravity: {x: null, y: null, z: 2}, rotationRate: {alpha: null, b
eta: null, gamma: 3}, interval: null}) |
| 79 PASS event.acceleration.x == null is true | 79 PASS event.acceleration.x == null is true |
| 80 PASS event.acceleration.y == null is true | 80 PASS event.acceleration.y == null is true |
| 81 PASS event.acceleration.z == 1 is true | 81 PASS event.acceleration.z == 1 is true |
| 82 PASS event.accelerationIncludingGravity.x == null is true | 82 PASS event.accelerationIncludingGravity.x == null is true |
| 83 PASS event.accelerationIncludingGravity.y == null is true | 83 PASS event.accelerationIncludingGravity.y == null is true |
| 84 PASS event.accelerationIncludingGravity.z == 2 is true | 84 PASS event.accelerationIncludingGravity.z == 2 is true |
| 85 PASS event.rotationRate.alpha == null is true | 85 PASS event.rotationRate.alpha == null is true |
| 86 PASS event.rotationRate.beta == null is true | 86 PASS event.rotationRate.beta == null is true |
| 87 PASS event.rotationRate.gamma == 3 is true | 87 PASS event.rotationRate.gamma == 3 is true |
| 88 PASS event.interval == null is true | 88 PASS event.interval == 0 is true |
| 89 event = new DeviceMotionEvent('', {acceleration: {x: undefined, y: undefined, z:
undefined}, accelerationIncludingGravity: {x: undefined, y: undefined, z: undef
ined}, rotationRate: {alpha: undefined, beta: undefined, gamma: undefined}, inte
rval: undefined}) | 89 event = new DeviceMotionEvent('', {acceleration: {x: undefined, y: undefined, z:
undefined}, accelerationIncludingGravity: {x: undefined, y: undefined, z: undef
ined}, rotationRate: {alpha: undefined, beta: undefined, gamma: undefined}, inte
rval: undefined}) |
| 90 PASS event.acceleration.x == null is true | 90 PASS event.acceleration.x == null is true |
| 91 PASS event.acceleration.y == null is true | 91 PASS event.acceleration.y == null is true |
| 92 PASS event.acceleration.z == null is true | 92 PASS event.acceleration.z == null is true |
| 93 PASS event.accelerationIncludingGravity.x == null is true | 93 PASS event.accelerationIncludingGravity.x == null is true |
| 94 PASS event.accelerationIncludingGravity.y == null is true | 94 PASS event.accelerationIncludingGravity.y == null is true |
| 95 PASS event.accelerationIncludingGravity.z == null is true | 95 PASS event.accelerationIncludingGravity.z == null is true |
| 96 PASS event.rotationRate.alpha == null is true | 96 PASS event.rotationRate.alpha == null is true |
| 97 PASS event.rotationRate.beta == null is true | 97 PASS event.rotationRate.beta == null is true |
| 98 PASS event.rotationRate.gamma == null is true | 98 PASS event.rotationRate.gamma == null is true |
| 99 PASS event.interval == null is true | 99 PASS event.interval == 0 is true |
| 100 event = new DeviceMotionEvent('', {acceleration: {x: undefined, y: undefined, z:
1}, accelerationIncludingGravity: {x: undefined, y: undefined, z: 2}, rotationR
ate: {alpha: undefined, beta: undefined, gamma: 3}, interval: undefined}) | 100 event = new DeviceMotionEvent('', {acceleration: {x: undefined, y: undefined, z:
1}, accelerationIncludingGravity: {x: undefined, y: undefined, z: 2}, rotationR
ate: {alpha: undefined, beta: undefined, gamma: 3}, interval: undefined}) |
| 101 PASS event.acceleration.x == null is true | 101 PASS event.acceleration.x == null is true |
| 102 PASS event.acceleration.y == null is true | 102 PASS event.acceleration.y == null is true |
| 103 PASS event.acceleration.z == 1 is true | 103 PASS event.acceleration.z == 1 is true |
| 104 PASS event.accelerationIncludingGravity.x == null is true | 104 PASS event.accelerationIncludingGravity.x == null is true |
| 105 PASS event.accelerationIncludingGravity.y == null is true | 105 PASS event.accelerationIncludingGravity.y == null is true |
| 106 PASS event.accelerationIncludingGravity.z == 2 is true | 106 PASS event.accelerationIncludingGravity.z == 2 is true |
| 107 PASS event.rotationRate.alpha == null is true | 107 PASS event.rotationRate.alpha == null is true |
| 108 PASS event.rotationRate.beta == null is true | 108 PASS event.rotationRate.beta == null is true |
| 109 PASS event.rotationRate.gamma == 3 is true | 109 PASS event.rotationRate.gamma == 3 is true |
| 110 PASS event.interval == null is true | 110 PASS event.interval == 0 is true |
| 111 PASS successfullyParsed is true | 111 PASS successfullyParsed is true |
| 112 | 112 |
| 113 TEST COMPLETE | 113 TEST COMPLETE |
| 114 | 114 |
| OLD | NEW |