diff --git a/dom/workers/test/serviceworkers/test_privateBrowsing.html b/dom/workers/test/serviceworkers/test_privateBrowsing.html index 0a75bf3cf478..fafc94453a8f 100644 --- a/dom/workers/test/serviceworkers/test_privateBrowsing.html +++ b/dom/workers/test/serviceworkers/test_privateBrowsing.html @@ -59,7 +59,7 @@ function doTests() { testOnWindow(true, function(aWin) { wP = aWin; ok(!("serviceWorker" in wP.content.navigator), "ServiceWorkers are not available for private windows"); - SimpleTest.finish(); + runTest(); }); }); } diff --git a/dom/workers/test/test_sharedWorker_privateBrowsing.html b/dom/workers/test/test_sharedWorker_privateBrowsing.html index 5ae8ae4e345a..60fec7e07d65 100644 --- a/dom/workers/test/test_sharedWorker_privateBrowsing.html +++ b/dom/workers/test/test_sharedWorker_privateBrowsing.html @@ -69,7 +69,7 @@ function doTests() { var sharedWorker3 = new wP.content.SharedWorker('sharedWorker_privateBrowsing.js'); sharedWorker3.port.onmessage = function(event) { is(event.data, 2, "Only 2 sharedworker expected in the private window"); - SimpleTest.finish(); + runTest(); } } }