| Index: LayoutTests/fast/files/file-reader-detached-no-crash.html
|
| diff --git a/LayoutTests/vibration/vibration-detached-no-crash.html b/LayoutTests/fast/files/file-reader-detached-no-crash.html
|
| similarity index 55%
|
| copy from LayoutTests/vibration/vibration-detached-no-crash.html
|
| copy to LayoutTests/fast/files/file-reader-detached-no-crash.html
|
| index 46b12de5a54a8e51b7acdd480115bf094bb626f8..21e5757715e90e6251e93269cdb6f2139685f754 100644
|
| --- a/LayoutTests/vibration/vibration-detached-no-crash.html
|
| +++ b/LayoutTests/fast/files/file-reader-detached-no-crash.html
|
| @@ -1,20 +1,21 @@
|
| <!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("Accessing FileReader when in a detached state.");
|
|
|
| window.jsTestIsAsync = true;
|
|
|
| var w;
|
| +var fileReader;
|
| function processMessage(event) {
|
| if (event.data == "opened") {
|
| + fileReader = new w.FileReader();
|
| w.close();
|
| } else if (event.data == "closed") {
|
| - shouldBeFalse("w.navigator.vibrate([])");
|
| + shouldThrow("fileReader.readAsArrayBuffer(new File(['hello'], 'world.html'))");
|
| finishJSTest();
|
| }
|
| }
|
| @@ -23,7 +24,7 @@ if (window.testRunner) {
|
| testRunner.dumpAsText();
|
| testRunner.setCanOpenWindows();
|
| }
|
| -w = window.open('resources/vibration-detached-no-crash-new-window.html');
|
| +w = window.open('resources/file-reader-detached-no-crash-new-window.html');
|
| window.addEventListener("message", processMessage, false);
|
| </script>
|
| </body>
|
|
|