Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / workers / worker-domurl.html
blob7a1d3355071a325fed8fce493f16e43008a2dbe3
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <pre id='console'></pre>
6 <script>
7 function log(message)
9 document.getElementById('console').appendChild(document.createTextNode(message + "\n"));
12 function runTest() {
13 var worker = new Worker('resources/worker-domurl.js');
14 worker.onmessage = function(event) {
15 if (event.data == 'DONE') {
16 testDOMURL();
17 if (window.testRunner)
18 testRunner.notifyDone();
19 } else
20 log(event.data);
22 testDOMURL();
23 worker.postMessage('');
26 function testDOMURL()
28 if (window.URL.createObjectURL == undefined)
29 log('FAIL: window.URL.createObjectURL undefined');
30 else
31 log('PASS: window.URL.createObjectURL defined');
33 if (window.URL.revokeObjectURL == undefined)
34 log('FAIL: window.URL.revokeObjectURL undefined');
35 else
36 log('PASS: window.URL.revokeObjectURL defined');
39 if (window.testRunner) {
40 testRunner.dumpAsText();
41 testRunner.waitUntilDone();
43 window.onload = runTest;
44 </script>
45 </body>
46 </html>