OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 <script> | 5 <script> |
6 description('Tests that the window.DeviceOrientationEvent and window.ondeviceori
entation and window.ondeviceorientationabsolute properties are present.'); | 6 description('Tests that the window.DeviceOrientationEvent and window.ondeviceori
entation and window.ondeviceorientationabsolute properties are present.'); |
7 | 7 |
8 shouldBeTrue("typeof window.DeviceOrientationEvent == 'object'"); | 8 shouldBeTrue("typeof window.DeviceOrientationEvent == 'object'"); |
9 shouldBeFalse("typeof window.DeviceOrientationEvent == 'function'"); | 9 shouldBeFalse("typeof window.DeviceOrientationEvent == 'function'"); |
10 shouldBeFalse("window.propertyIsEnumerable('DeviceOrientationEvent')"); | 10 shouldBeFalse("window.propertyIsEnumerable('DeviceOrientationEvent')"); |
11 shouldBeTrue("'DeviceOrientationEvent' in window"); | 11 shouldBeTrue("'DeviceOrientationEvent' in window"); |
12 shouldBeTrue("window.hasOwnProperty('DeviceOrientationEvent')"); | 12 shouldBeTrue("window.hasOwnProperty('DeviceOrientationEvent')"); |
13 | 13 |
14 function hasProperty(orientationProperty) | 14 function hasProperty(orientationProperty) |
(...skipping 10 matching lines...) Expand all Loading... |
25 shouldBeTrue("hasProperty('ondeviceorientation')"); | 25 shouldBeTrue("hasProperty('ondeviceorientation')"); |
26 shouldBeTrue("hasProperty('ondeviceorientationabsolute')"); | 26 shouldBeTrue("hasProperty('ondeviceorientationabsolute')"); |
27 shouldBeTrue("'ondeviceorientation' in window"); | 27 shouldBeTrue("'ondeviceorientation' in window"); |
28 shouldBeTrue("'ondeviceorientationabsolute' in window"); | 28 shouldBeTrue("'ondeviceorientationabsolute' in window"); |
29 shouldBeTrue("window.hasOwnProperty('ondeviceorientation')"); | 29 shouldBeTrue("window.hasOwnProperty('ondeviceorientation')"); |
30 shouldBeTrue("window.hasOwnProperty('ondeviceorientationabsolute')"); | 30 shouldBeTrue("window.hasOwnProperty('ondeviceorientationabsolute')"); |
31 </script> | 31 </script> |
32 </body> | 32 </body> |
33 </html> | 33 </html> |
34 | 34 |
OLD | NEW |