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

Unified Diff: LayoutTests/screen_orientation/lockOrientation-array-argument.html

Issue 171683015: Screen Orientation API: Add support for lockOrientation() / unlockOrientation() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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
« no previous file with comments | « no previous file | LayoutTests/screen_orientation/lockOrientation-array-argument-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/screen_orientation/lockOrientation-array-argument.html
diff --git a/LayoutTests/screen_orientation/lockOrientation-array-argument.html b/LayoutTests/screen_orientation/lockOrientation-array-argument.html
new file mode 100644
index 0000000000000000000000000000000000000000..3068a64caad569210e1a1426f5f11bb921c546e2
--- /dev/null
+++ b/LayoutTests/screen_orientation/lockOrientation-array-argument.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script src="../resources/js-test.js"></script>
+<script>
+description("Validates that lockOrientation() can take an array as argument.");
+
+shouldBeEqualToString("screen.orientation", "portrait-primary");
+debug("locking orientation to ['portrait-primary', 'landscape-primary'].");
+shouldBeTrue("screen.lockOrientation(['portrait-primary', 'landscape-primary'])");
+</script>
+</body>
+</html>
+
« no previous file with comments | « no previous file | LayoutTests/screen_orientation/lockOrientation-array-argument-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698