Index: LayoutTests/screen_orientation/unlock-when-not-locked.html |
diff --git a/LayoutTests/screen_orientation/unlock-when-not-locked.html b/LayoutTests/screen_orientation/unlock-when-not-locked.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3644f2a25e949cf3fb746016bedb050a772f2fb5 |
--- /dev/null |
+++ b/LayoutTests/screen_orientation/unlock-when-not-locked.html |
@@ -0,0 +1,13 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<script src="../resources/js-test.js"></script> |
+<script> |
+description("Validates that screen.unlockOrientation() has not effect when not locked."); |
+ |
+shouldBeEqualToString("screen.orientation", "portrait-primary"); |
+shouldNotThrow("screen.unlockOrientation()"); |
+shouldBeEqualToString("screen.orientation", "portrait-primary"); |
+</script> |
+</body> |
+</html> |