gecko/dom/workers/test/dom_worker_helper.js

22 lines
374 B
JavaScript
Raw Normal View History

/**
* 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();
}
}