gecko/dom/workers/test/dom_worker_helper.js
Ehsan Akhgari b3ee3e71d9 Bug 685995 - DOM chrome worker tests do not really test anything; r=ted
--HG--
extra : rebase_source : 818071f95ee10917811e16dc42d4073d23035146
2011-09-22 22:36:09 -04:00

22 lines
374 B
JavaScript

/**
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
var gRemainingTests = 0;
function waitForWorkerFinish() {
if (gRemainingTests == 0) {
SimpleTest.waitForExplicitFinish();
}
++gRemainingTests;
}
function finish() {
--gRemainingTests;
if (gRemainingTests == 0) {
SimpleTest.finish();
}
}