4 <script src="../resources/js-test.js"></script>
6 description("Validates the Screen Orientation API is exposed.");
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");