Index: LayoutTests/screen_orientation/lockOrientation-basic.html |
diff --git a/LayoutTests/screen_orientation/lockOrientation-basic.html b/LayoutTests/screen_orientation/lockOrientation-basic.html |
index c54226dccc79f78ac099b7bb625cba2ac86e4dc3..a14ae787e6523faa97a433a2c332e2b0fba20ba4 100644 |
--- a/LayoutTests/screen_orientation/lockOrientation-basic.html |
+++ b/LayoutTests/screen_orientation/lockOrientation-basic.html |
@@ -7,9 +7,14 @@ description("Basic screen.lockOrientation() / screen.unlockOrientation() testing |
shouldBeEqualToString("screen.orientation", "portrait-primary"); |
shouldNotThrow("screen.unlockOrientation()"); |
-shouldBeTrue("screen.lockOrientation('landscape-primary')"); |
-shouldBeEqualToString("screen.orientation", "portrait-primary"); // Should update asynchronously. |
-shouldBeTrue("screen.lockOrientation('landscape-secondary')"); // Consecutive locking. |
+ |
+[ 'any', 'portrait', 'landscape', 'portrait-primary', 'portrait-secondary', |
+ 'landscape-primary', 'landscape-secondary' ].forEach(function(orientation) { |
+ shouldBeTrue("screen.lockOrientation('" + orientation + "')"); |
+}); |
+ |
+// Update is made asynchronously so that shouldn't change. |
+shouldBeEqualToString("screen.orientation", "portrait-primary"); |
shouldNotThrow("screen.unlockOrientation()"); |
</script> |
</body> |