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

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: Add locked-no-orientation-change-event.html layout test 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..629ebfe15cad421a16fec71ce5ad8ce8c6c45129
--- /dev/null
+++ b/LayoutTests/screen_orientation/screenorientation-api.html
@@ -0,0 +1,13 @@
+<!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");
mlamouri (slow - plz ping) 2014/02/10 18:20:57 Shouldn't you add a check for screen.onorientation
Inactive 2014/02/10 22:25:24 Makes sense, Done.
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698