5 window
.isOnErrorTest
= true;
7 <script src=
"../../resources/js-test.js"></script>
9 function buildInlineWorker() {
10 var script
= document
.getElementById('workerCode').innerText
;
11 var blob
= new Blob([script
], {type
: 'text/javascript'});
12 var worker
= new Worker(URL
.createObjectURL(blob
));
14 worker
.addEventListener('message', function (e
) {
16 return finishJSTest();
24 <!-- This script's body will be used to build a Blob URL to use as a Worker. -->
25 <script id=
"workerCode" type=
"text/plain">
27 console.log(typeof console.log);
28 console.log(console.log.toString());
29 console.error(
"error");
32 console.debug(
"debug");
33 console.count(
"count");
36 // FIXME(slightlyoff): these aren't getting logged properly from here!
37 console.timeEnd(
"time");
39 console.assert(false);
40 console.markTimeline(
"markTimeline");
42 this.postMessage({ done: true });
45 window
.jsTestIsAsync
= true;
46 description("This tests that 'console.log' and friends function correctly from workers.");