OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <body> |
| 4 <script src="../resources/js-test.js"></script> |
| 5 <script> |
| 6 description("Validates the Screen Orientation API is exposed."); |
| 7 |
| 8 shouldBeDefined("screen.lockOrientation"); |
| 9 shouldBeDefined("screen.unlockOrientation"); |
| 10 shouldBeDefined("screen.orientation"); |
| 11 shouldBeDefined("screen.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> |
| 18 </body> |
| 19 </html> |
| 20 |
OLD | NEW |