OLD | NEW |
1 Tests the optional properties of DeviceOrientationEvent. Each property should be
null if not set, or set to null or undefined. | 1 Tests the optional properties of DeviceOrientationEvent. 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('DeviceOrientationEvent') | 6 event = document.createEvent('DeviceOrientationEvent') |
7 PASS event.alpha == null is true | 7 PASS event.alpha == null is true |
8 PASS event.beta == null is true | 8 PASS event.beta == null is true |
9 PASS event.gamma == null is true | 9 PASS event.gamma == null is true |
10 PASS event.absolute is false | 10 PASS event.absolute is false |
11 event.initDeviceOrientationEvent('', false, false, 0, 1, 2, false) | 11 event = new DeviceOrientationEvent('', {alpha: 0, beta: 1, gamma: 2, absolute: f
alse}) |
12 PASS event.alpha == 0 is true | 12 PASS event.alpha == 0 is true |
13 PASS event.beta == 1 is true | 13 PASS event.beta == 1 is true |
14 PASS event.gamma == 2 is true | 14 PASS event.gamma == 2 is true |
15 PASS event.absolute is false | 15 PASS event.absolute is false |
16 event.initDeviceOrientationEvent('', false, false, 0, 1, 2, true) | 16 event = new DeviceOrientationEvent('', {alpha: 0, beta: 1, gamma: 2, absolute: t
rue}) |
17 PASS event.alpha == 0 is true | 17 PASS event.alpha == 0 is true |
18 PASS event.beta == 1 is true | 18 PASS event.beta == 1 is true |
19 PASS event.gamma == 2 is true | 19 PASS event.gamma == 2 is true |
20 PASS event.absolute is true | 20 PASS event.absolute is true |
21 event.initDeviceOrientationEvent() | 21 event = new DeviceOrientationEvent('') |
22 PASS event.alpha == null is true | 22 PASS event.alpha == null is true |
23 PASS event.beta == null is true | 23 PASS event.beta == null is true |
24 PASS event.gamma == null is true | 24 PASS event.gamma == null is true |
25 PASS event.absolute is false | 25 PASS event.absolute is false |
26 event.initDeviceOrientationEvent('', false, false, [], [], [], []) | 26 event = new DeviceOrientationEvent('', {alpha: [], beta: [], gamma: [], absolute
: []}) |
27 PASS event.alpha == 0 is true | 27 PASS event.alpha == 0 is true |
28 PASS event.beta == 0 is true | 28 PASS event.beta == 0 is true |
29 PASS event.gamma == 0 is true | 29 PASS event.gamma == 0 is true |
30 PASS event.absolute is true | 30 PASS event.absolute is true |
31 event.initDeviceOrientationEvent('', false, false, undefined, undefined, undefin
ed, undefined) | 31 event = new DeviceOrientationEvent('', {alpha: undefined, beta: undefined, gamma
: undefined, absolute: undefined}) |
32 PASS event.alpha == null is true | 32 PASS event.alpha == null is true |
33 PASS event.beta == null is true | 33 PASS event.beta == null is true |
34 PASS event.gamma == null is true | 34 PASS event.gamma == null is true |
35 PASS event.absolute is false | 35 PASS event.absolute is false |
36 event.initDeviceOrientationEvent('', false, false, '', '', '', '') | 36 event = new DeviceOrientationEvent('', {alpha: '', beta: '', gamma: '', absolute
: ''}) |
37 PASS event.alpha == 0 is true | 37 PASS event.alpha == 0 is true |
38 PASS event.beta == 0 is true | 38 PASS event.beta == 0 is true |
39 PASS event.gamma == 0 is true | 39 PASS event.gamma == 0 is true |
40 PASS event.absolute is false | 40 PASS event.absolute is false |
41 event.initDeviceOrientationEvent('', false, false, null, null, null, null) | 41 event = new DeviceOrientationEvent('', {alpha: null, beta: null, gamma: null, ab
solute: null}) |
42 PASS event.alpha == null is true | 42 PASS event.alpha == null is true |
43 PASS event.beta == null is true | 43 PASS event.beta == null is true |
44 PASS event.gamma == null is true | 44 PASS event.gamma == null is true |
45 PASS event.absolute is false | 45 PASS event.absolute is false |
46 PASS successfullyParsed is true | 46 PASS successfullyParsed is true |
47 | 47 |
48 TEST COMPLETE | 48 TEST COMPLETE |
49 | 49 |
OLD | NEW |