4 <pre id='console'
></pre>
5 <script src=
"../../resources/gc.js"></script>
9 document
.getElementById('console').appendChild(document
.createTextNode(message
+ "\n"));
14 log("Test that FileReader.abort on newly created FileReader doesn't crash.");
15 new FileReader().abort();
20 log("Test that FileReader.abort on newly created FileReader doesn't fire events.");
22 var reader
= new FileReader();
23 reader
.onload = function() {
24 log("Received load event");
26 reader
.onloadend = function() {
27 log("Received loadend event");
29 reader
.onabort = function() {
30 log("Received abort event");
32 reader
.onerror = function(event
) {
33 log("Received error event: " + event
.target
.error
.code
);
50 if (testRunner
.notifyDone
)
51 testRunner
.notifyDone();
54 if (window
.testRunner
) {
55 testRunner
.dumpAsText();
56 testRunner
.waitUntilDone();
59 window
.onload
= runTests
;