OLD | NEW |
1 Tests that document.createEvent() works with DeviceMotionEvent. | 1 Tests that document.createEvent() works with DeviceMotionEvent. |
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 PASS typeof event == 'object' is true | 6 PASS typeof event == 'object' is true |
7 PASS event.__proto__ is DeviceMotionEvent.prototype | 7 PASS event.__proto__ is DeviceMotionEvent.prototype |
8 PASS 'type' in event is true | 8 PASS 'type' in event is true |
9 PASS 'bubbles' in event is true | 9 PASS 'bubbles' in event is true |
10 PASS 'cancelable' in event is true | 10 PASS 'cancelable' in event is true |
11 PASS 'acceleration' in event is true | 11 PASS 'acceleration' in event is true |
12 PASS 'accelerationIncludingGravity' in event is true | 12 PASS 'accelerationIncludingGravity' in event is true |
13 PASS 'rotationRate' in event is true | 13 PASS 'rotationRate' in event is true |
14 PASS 'interval' in event is true | 14 PASS 'interval' in event is true |
15 PASS typeof newEvent.type == 'string' is true | 15 PASS typeof newEvent.type == 'string' is true |
16 PASS newEvent.type is "devicemotion" | 16 PASS newEvent.type is "devicemotion" |
17 PASS typeof newEvent.bubbles == 'boolean' is true | 17 PASS typeof newEvent.bubbles == 'boolean' is true |
18 PASS event.bubbles is false | 18 PASS event.bubbles is false |
19 PASS newEvent.bubbles is false | 19 PASS newEvent.bubbles is false |
20 PASS typeof newEvent.cancelable == 'boolean' is true | 20 PASS typeof newEvent.cancelable == 'boolean' is true |
21 PASS event.cancelable is false | 21 PASS event.cancelable is false |
22 PASS newEvent.cancelable is false | 22 PASS newEvent.cancelable is false |
23 PASS typeof event.acceleration == 'object' is true | 23 PASS typeof event.acceleration == 'object' is true |
24 PASS typeof event.accelerationIncludingGravity == 'object' is true | 24 PASS typeof event.accelerationIncludingGravity == 'object' is true |
25 PASS typeof event.rotationRate == 'object' is true | 25 PASS typeof event.rotationRate == 'object' is true |
26 PASS typeof event.interval == 'object' is true | 26 PASS typeof event.interval == 'number' is true |
27 PASS successfullyParsed is true | 27 PASS successfullyParsed is true |
28 | 28 |
29 TEST COMPLETE | 29 TEST COMPLETE |
30 | 30 |
OLD | NEW |