Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / files / file-reader-abort-in-last-progress.html
blob09856079650a5d04b78aef71e6640c2a5fc9e4de
1 <!DOCTYPE html>
2 <html>
3 <head>
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>
8 </head>
9 <body>
10 <script>
12 var reader = new FileReader();
14 setup({explicit_done: true});
16 on_event(reader, "progress", function() {
17 test(function() {
18 assert_equals(reader.readyState, reader.LOADING, "The readyState");
19 reader.abort();
20 }, "Check if readyState is done, and calling abort() doesn't crash");
21 });
23 on_event(reader, "loadend", function() {
24 done();
25 });
27 reader.readAsText(new Blob(["foo"]));
29 </script>
30 </body>
31 </html>