Index: LayoutTests/screen_orientation/screenorientation-api.html |
diff --git a/LayoutTests/screen_orientation/screenorientation-api.html b/LayoutTests/screen_orientation/screenorientation-api.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..66dc845c27d44c265cdd14ae6431f8577e36b5c5 |
--- /dev/null |
+++ b/LayoutTests/screen_orientation/screenorientation-api.html |
@@ -0,0 +1,20 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<script src="../resources/js-test.js"></script> |
+<script> |
+description("Validates the Screen Orientation API is exposed."); |
+ |
+shouldBeDefined("screen.lockOrientation"); |
+shouldBeDefined("screen.unlockOrientation"); |
+shouldBeDefined("screen.orientation"); |
+shouldBeDefined("screen.onorientationchange"); |
+// Screen should be an EventTarget |
+shouldBe("screen.__proto__.__proto__", "EventTarget.prototype"); |
+shouldBeDefined("screen.addEventListener"); |
+shouldBeDefined("screen.removeEventListener"); |
+shouldBeDefined("screen.dispatchEvent"); |
+</script> |
+</body> |
+</html> |
+ |