Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / files / workers / worker-apply-blob-url-to-xhr.html
blob7b440b8a1d884e6d7575cfdaa607ca170b47f1de
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <input type="file" name="file" id="file" onchange="onInputFileChange()">
5 <pre id='console'></pre>
7 <script>
8 function log(message)
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)
19 log(event.data);
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);
34 function runTests()
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;
46 </script>
47 </body>
48 </html>