4 <script src=
"../../resources/js-test.js"></script>
7 description("Accessing FileReader when in a detached state.");
9 window
.jsTestIsAsync
= true;
13 function processMessage(event
) {
14 if (event
.data
== "opened") {
15 fileReader
= new w
.FileReader();
17 } else if (event
.data
== "closed") {
18 shouldThrow("fileReader.readAsArrayBuffer(new File(['hello'], 'world.html'))");
23 if (window
.testRunner
) {
24 testRunner
.dumpAsText();
25 testRunner
.setCanOpenWindows();
27 w
= window
.open('../../resources/window-postmessage-open-close.html');
28 window
.addEventListener("message", processMessage
, false);