B2G/gecko/toolkit/mozapps/update/test/chrome/utils.js
/**
 * Verifies that all tests ran.
 */
Verifies that all tests ran.
Verifies that all tests ran .
function verifyTestsRan() {
  debugDump("entering");
  if (!TESTS) {
    return;
  }
  gTestCounter = -1;
  for (let i = 0; i < TESTS.length; ++i) {
    gTestCounter++;
    let test = TESTS[i];
    let msg = "Checking if TESTS[" + i + "] test was performed... " +
              "callback function name = " + gCallback.name + ", " +
              "pageid = " + test.pageid;
    ok(test.ranTest, msg);
  }
}
function verifyTestsRan ( ) { debugDump ( "entering" ) ; if ( ! TESTS ) { return ; } gTestCounter = - 1 ; for ( let i = 0 ; i < TESTS . length ; ++ i ) { gTestCounter ++ ; let test = TESTS [ i ] ; let msg = "Checking if TESTS[" + i + "] test was performed... " + "callback function name = " + gCallback . name + ", " + "pageid = " + test . pageid ; ok ( test . ranTest , msg ) ; } }
Verifies that all tests ran.
Verifies that all tests ran .
// Return early if there are no tests defined.