dom/workers/test/dom_worker_helper.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:1d14876105fb
1 /**
2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/publicdomain/zero/1.0/
4 */
5
6 var gRemainingTests = 0;
7
8 function waitForWorkerFinish() {
9 if (gRemainingTests == 0) {
10 SimpleTest.waitForExplicitFinish();
11 }
12 ++gRemainingTests;
13 }
14
15 function finish() {
16 --gRemainingTests;
17 if (gRemainingTests == 0) {
18 SimpleTest.finish();
19 }
20 }
21

mercurial