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("Validates the Screen Orientation API is exposed."); | 6 description("Validates the Screen Orientation API is exposed."); |
7 | 7 |
8 shouldBeDefined("screen.lockOrientation"); | 8 shouldBeDefined("screen.lockOrientation"); |
9 shouldBeDefined("screen.unlockOrientation"); | 9 shouldBeDefined("screen.unlockOrientation"); |
10 shouldBeDefined("screen.orientation"); | 10 shouldBeDefined("screen.orientation"); |
11 shouldBeDefined("screen.onorientationchange"); | 11 shouldBeDefined("window.onorientationchange"); |
12 // Screen should be an EventTarget | |
13 shouldBe("screen.__proto__.__proto__", "EventTarget.prototype"); | |
14 shouldBeDefined("screen.addEventListener"); | |
15 shouldBeDefined("screen.removeEventListener"); | |
16 shouldBeDefined("screen.dispatchEvent"); | |
17 </script> | 12 </script> |
18 </body> | 13 </body> |
19 </html> | 14 </html> |
20 | 15 |
OLD | NEW |