| Index: LayoutTests/screen_orientation/lockOrientation-bad-argument.html
|
| diff --git a/LayoutTests/screen_orientation/lockOrientation-bad-argument.html b/LayoutTests/screen_orientation/lockOrientation-bad-argument.html
|
| index 236f254e6862448f3d9500c2aa8e6df147146baf..8a4fc88ab3c0866a06cb432683107135c31af89c 100644
|
| --- a/LayoutTests/screen_orientation/lockOrientation-bad-argument.html
|
| +++ b/LayoutTests/screen_orientation/lockOrientation-bad-argument.html
|
| @@ -9,7 +9,7 @@ window.jsTestIsAsync = true;
|
| function onOrientationChangeEvent(ev) {
|
| testFailed("Unexpected 'orientationchange' event");
|
| }
|
| -
|
| +
|
| function completeTest() {
|
| shouldBeEqualToString("screen.orientation", "portrait-primary");
|
| screen.unlockOrientation();
|
| @@ -29,6 +29,8 @@ shouldBeFalse("screen.lockOrientation(123)");
|
| shouldBeEqualToString("screen.orientation", "portrait-primary");
|
| shouldBeFalse("screen.lockOrientation(window)");
|
| shouldBeEqualToString("screen.orientation", "portrait-primary");
|
| +shouldBeFalse("screen.lockOrientation(['portrait-primary', 'landscape-primary'])");
|
| +shouldBeEqualToString("screen.orientation", "portrait-primary");
|
| shouldThrow("screen.lockOrientation()", '"TypeError: Failed to execute \'lockOrientation\' on \'Screen\': 1 argument required, but only 0 present."');
|
|
|
| // Finish asynchronously to give events a chance to fire.
|
|
|