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 the optional properties of DeviceOrientationEvent. Each prope
rty should be null if not set, or set to null or undefined.'); | 6 description('Tests the optional properties of DeviceOrientationEvent. Each prope
rty should be null if not set, or set to null or undefined.'); |
7 | 7 |
8 var event; | 8 var event; |
9 | 9 |
10 evalAndLog("event = document.createEvent('DeviceOrientationEvent')"); | 10 evalAndLog("event = document.createEvent('DeviceOrientationEvent')"); |
11 shouldBeTrue("event.alpha == null"); | 11 shouldBeTrue("event.alpha == null"); |
12 shouldBeTrue("event.beta == null"); | 12 shouldBeTrue("event.beta == null"); |
13 shouldBeTrue("event.gamma == null"); | 13 shouldBeTrue("event.gamma == null"); |
14 shouldBeFalse("event.absolute"); | 14 shouldBeFalse("event.absolute"); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 shouldBeFalse("event.absolute"); | 50 shouldBeFalse("event.absolute"); |
51 | 51 |
52 evalAndLog("event.initDeviceOrientationEvent('', false, false, null, null, null,
null)"); | 52 evalAndLog("event.initDeviceOrientationEvent('', false, false, null, null, null,
null)"); |
53 shouldBeTrue("event.alpha == null"); | 53 shouldBeTrue("event.alpha == null"); |
54 shouldBeTrue("event.beta == null"); | 54 shouldBeTrue("event.beta == null"); |
55 shouldBeTrue("event.gamma == null"); | 55 shouldBeTrue("event.gamma == null"); |
56 shouldBeFalse("event.absolute"); | 56 shouldBeFalse("event.absolute"); |
57 </script> | 57 </script> |
58 </body> | 58 </body> |
59 </html> | 59 </html> |
OLD | NEW |