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> |
+ |