4 <pre id='console'
></pre>
9 document
.getElementById('console').appendChild(document
.createTextNode(message
+ "\n"));
13 var worker
= new Worker('resources/worker-domurl.js');
14 worker
.onmessage = function(event
) {
15 if (event
.data
== 'DONE') {
17 if (window
.testRunner
)
18 testRunner
.notifyDone();
23 worker
.postMessage('');
28 if (window
.URL
.createObjectURL
== undefined)
29 log('FAIL: window.URL.createObjectURL undefined');
31 log('PASS: window.URL.createObjectURL defined');
33 if (window
.URL
.revokeObjectURL
== undefined)
34 log('FAIL: window.URL.revokeObjectURL undefined');
36 log('PASS: window.URL.revokeObjectURL defined');
39 if (window
.testRunner
) {
40 testRunner
.dumpAsText();
41 testRunner
.waitUntilDone();
43 window
.onload
= runTest
;