6 var blob
= new Blob(["0123456789"]);
7 var reader
= new FileReader();
8 reader
.onload = function(event
) {
9 console
.log("Received data: " + event
.target
.result
);
11 reader
.onloadend = function() {
12 if (window
.testRunner
)
13 testRunner
.notifyDone();
15 reader
.onerror = function(event
) {
16 console
.log("Received error event: " + event
.target
.error
.code
);
18 reader
.readAsText(blob
);
23 <body onload=
"runTest()">