3 document.getElementById("result").innerHTML += message + "<br>";
6 if (window.testRunner) {
7 testRunner.dumpAsText();
8 testRunner.waitUntilDone();
11 var worker = createWorker();
13 log("This tests that gc does not destroy the WorkerNavigator and WorkerLocation wrappers if the WorkerContext is still active. You should see two PASSes below if this test succeeds.");
15 worker.postMessage("eval navigator.foo = 'PASS'; gc(); navigator.foo");
16 worker.postMessage("eval location.foo = 'PASS'; gc(); location.foo");
18 worker.postMessage("eval foo//bar");
20 worker.onmessage = function(evt) {
21 if (!/foo\/\/bar/.test(evt.data))
22 log(evt.data.replace(new RegExp("/.*LayoutTests"), "<...>"));
25 if (window.testRunner)
26 testRunner.notifyDone();