1 <p>This page tests for a GC crash when tearing down a worker. If the tests passes,
2 you'll see a PASS message below.
</p>
4 <pre id=
"console"></pre>
9 return document
.getElementById(id
);
14 $("console").appendChild(document
.createTextNode(s
+ "\n"));
18 if (window
.testRunner
) {
19 testRunner
.dumpAsText();
20 testRunner
.waitUntilDone();
23 var worker
= new Worker("resources/worker-gc2.js");
24 worker
.onmessage = function () {
25 log("PASS: You didn't crash.");
27 // Try to wait for the worker to finish closing.
28 setTimeout(function () {
29 if (window
.testRunner
)
30 testRunner
.notifyDone();