| Index: LayoutTests/screen_orientation/lockOrientation-basic.html
|
| diff --git a/LayoutTests/screen_orientation/lockOrientation-basic.html b/LayoutTests/screen_orientation/lockOrientation-basic.html
|
| index a14ae787e6523faa97a433a2c332e2b0fba20ba4..ae860c72d9052dabd85123c8a9f7ae5429abb6d9 100644
|
| --- a/LayoutTests/screen_orientation/lockOrientation-basic.html
|
| +++ b/LayoutTests/screen_orientation/lockOrientation-basic.html
|
| @@ -1,21 +1,29 @@
|
| <!DOCTYPE html>
|
| <html>
|
| <body>
|
| +<script src="../fullscreen/full-screen-test.js"></script>
|
| <script src="../resources/js-test.js"></script>
|
| <script>
|
| description("Basic screen.lockOrientation() / screen.unlockOrientation() testing");
|
| +window.jsTestIsAsync = true;
|
|
|
| -shouldBeEqualToString("screen.orientation", "portrait-primary");
|
| -shouldNotThrow("screen.unlockOrientation()");
|
| +function runTest() {
|
| + shouldBeEqualToString("screen.orientation", "portrait-primary");
|
| + shouldNotThrow("screen.unlockOrientation()");
|
|
|
| -[ 'any', 'portrait', 'landscape', 'portrait-primary', 'portrait-secondary',
|
| - 'landscape-primary', 'landscape-secondary' ].forEach(function(orientation) {
|
| - shouldBeTrue("screen.lockOrientation('" + orientation + "')");
|
| -});
|
| + [ '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()");
|
| + // Update is made asynchronously so that shouldn't change.
|
| + shouldBeEqualToString("screen.orientation", "portrait-primary");
|
| + shouldNotThrow("screen.unlockOrientation()");
|
| + finishJSTest();
|
| +}
|
| +
|
| +waitForEvent(document, 'webkitfullscreenchange', runTest);
|
| +runWithKeyDown(function(){document.documentElement.webkitRequestFullScreen()});
|
| </script>
|
| </body>
|
| </html>
|
|
|