Index: LayoutTests/screen_orientation/lockOrientation-not-fullscreen.html |
diff --git a/LayoutTests/screen_orientation/lockOrientation-not-fullscreen.html b/LayoutTests/screen_orientation/lockOrientation-not-fullscreen.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fe5a5459fb29bd0984bc2af8661d6928ff01b222 |
--- /dev/null |
+++ b/LayoutTests/screen_orientation/lockOrientation-not-fullscreen.html |
@@ -0,0 +1,14 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<script src="../resources/js-test.js"></script> |
+<script> |
+description("Tests that screen.lockOrientation() does not work when not in fullscreen."); |
+ |
+[ 'any', 'portrait', 'landscape', 'portrait-primary', 'portrait-secondary', |
+ 'landscape-primary', 'landscape-secondary' ].forEach(function(orientation) { |
+ shouldBeFalse("screen.lockOrientation('" + orientation + "')"); |
+}); |
+</script> |
+</body> |
+</html> |