4 <input type=
"file" name=
"file" id=
"file" onchange=
"onInputFileChange()">
5 <pre id='console'
></pre>
10 document
.getElementById('console').appendChild(document
.createTextNode(message
+ "\n"));
13 function onInputFileChange()
15 var file
= document
.getElementById("file").files
[0];
16 var worker
= new Worker("../resources/apply-blob-url-to-xhr.js");
17 worker
.onmessage = function(event
)
20 if (event
.data
== "DONE") {
21 if (window
.testRunner
)
22 testRunner
.notifyDone();
25 worker
.onerror = function(event
)
27 log("Received error from worker: " + event
.message
);
28 if (window
.testRunner
)
29 testRunner
.notifyDone();
31 worker
.postMessage(file
);
36 eventSender
.beginDragWithFiles(['../resources/UTF8.txt']);
37 eventSender
.mouseMoveTo(10, 10);
38 eventSender
.mouseUp();
41 if (window
.eventSender
) {
42 testRunner
.dumpAsText();
43 testRunner
.waitUntilDone();
44 window
.onload
= runTests
;