Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / files / file-reader-detached-no-crash.html
blobe38052a4eb1d22d19a9a86b1926b11828a9bbb86
1 <!DOCTYPE HTML>
2 <body>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <script>
7 description("Accessing FileReader when in a detached state.");
9 window.jsTestIsAsync = true;
11 var w;
12 var fileReader;
13 function processMessage(event) {
14 if (event.data == "opened") {
15 fileReader = new w.FileReader();
16 w.close();
17 } else if (event.data == "closed") {
18 shouldThrow("fileReader.readAsArrayBuffer(new File(['hello'], 'world.html'))");
19 finishJSTest();
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);
29 </script>
30 </body>