Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / files / file-reader-abort-gc-iframe.html
blob3fba069617b17813cd3820df4241b3b96f7714b6
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 description("Verify that an aborted and stopping FileReader doesn't crash");
6 window.jsTestIsAsync = true;
8 if (window.testRunner)
9 testRunner.dumpAsText();
11 var reader;
12 function setReader(r) {
13 reader = r;
16 function runTest() {
17 reader.readAsText(new Blob());
18 reader.abort();
19 document.body.removeChild(document.getElementById('ifr'));
20 reader = null;
21 gc();
22 testPassed("No crash");
23 finishJSTest();
25 </script>
26 <iframe id=ifr src="resources/file-reader-abort-gc-iframe.html"></iframe>