Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: LayoutTests/screen_orientation/screenorientation-api.html

Issue 132113006: Add initial Blink-side support for the Screen Orientation API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update compile-time assertion for matching enum Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..b2e3df5749503cd8e1dbe9c3bfc3bb1d34538b0a
--- /dev/null
+++ b/LayoutTests/screen_orientation/screenorientation-api.html
@@ -0,0 +1,19 @@
+<!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>

Powered by Google App Engine
This is Rietveld 408576698