| Index: LayoutTests/fast/dom/Window/window-closed-immediate.html
|
| diff --git a/LayoutTests/vibration/vibration-detached-no-crash.html b/LayoutTests/fast/dom/Window/window-closed-immediate.html
|
| similarity index 60%
|
| copy from LayoutTests/vibration/vibration-detached-no-crash.html
|
| copy to LayoutTests/fast/dom/Window/window-closed-immediate.html
|
| index 7e0de30d42831b7ab5aec3aa758a641a9c50fc8c..346ce363a2de91e06441ec31e61784e0e0044a89 100644
|
| --- a/LayoutTests/vibration/vibration-detached-no-crash.html
|
| +++ b/LayoutTests/fast/dom/Window/window-closed-immediate.html
|
| @@ -1,29 +1,29 @@
|
| <!DOCTYPE HTML>
|
| <body>
|
| <head>
|
| -<script src="../resources/js-test.js"></script>
|
| -<script src="vibration-utils.js"></script>
|
| +<script src="../../../resources/js-test.js"></script>
|
| </head>
|
| <script>
|
| -description("Accessing navigator.vibrate on a closed window.");
|
| +description("window.closed should return true after window.close().");
|
|
|
| window.jsTestIsAsync = true;
|
|
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.setCanOpenWindows();
|
| +}
|
| var w;
|
| function processMessage(event) {
|
| if (event.data == "opened") {
|
| w.close();
|
| + shouldBeTrue("w.closed");
|
| } else if (event.data == "closed") {
|
| - shouldBeFalse("w.navigator.vibrate([])");
|
| + shouldBeTrue("w.closed");
|
| finishJSTest();
|
| }
|
| }
|
|
|
| -if (window.testRunner) {
|
| - testRunner.dumpAsText();
|
| - testRunner.setCanOpenWindows();
|
| -}
|
| -w = window.open('../resources/window-postmessage-open-close.html');
|
| +w = window.open('../../../resources/window-postmessage-open-close.html');
|
| window.addEventListener("message", processMessage, false);
|
| </script>
|
| </body>
|
|
|