mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00:00
60606f81f5
--HG-- extra : rebase_source : 818071f95ee10917811e16dc42d4073d23035146
22 lines
374 B
JavaScript
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();
|
|
}
|
|
}
|
|
|