4 <title>FileReader.abort() in the last progress event shouldn't crash
</title>
5 <link rel=
"help" href=
"http://www.w3.org/TR/FileAPI/#events">
6 <script src=
"../../resources/testharness.js"></script>
7 <script src=
"../../resources/testharnessreport.js"></script>
12 var reader
= new FileReader();
14 setup({explicit_done
: true});
16 on_event(reader
, "progress", function() {
18 assert_equals(reader
.readyState
, reader
.LOADING
, "The readyState");
20 }, "Check if readyState is done, and calling abort() doesn't crash");
23 on_event(reader
, "loadend", function() {
27 reader
.readAsText(new Blob(["foo"]));