B2G/gecko/toolkit/mozapps/update/test/chrome/utils.js
/**
 * nsITimerCallback for the timeout timer to cleanly finish a test if the Update
 * Window doesn't close for a test. This allows the next test to run properly if
 * a previous test fails.
 *
 * @param  aTimer
 *         The nsITimer that fired.
 */
nsITimerCallback for the timeout timer to cleanly finish a test if the Update
Window doesn't close for a test. This allows the next test to run properly if
a previous test fails.

@param  aTimer
The nsITimer that fired.
nsITimerCallback for the timeout timer to cleanly finish a test if the Update Window doesn ' t close for a test . This allows the next test to run properly if a previous test fails . @param aTimer The nsITimer that fired .
function finishTestTimeout(aTimer) {
  ok(false, "Test timed out. Maximum time allowed is " + (TEST_TIMEOUT / 1000) +
     " seconds");
  try {
    finishTest();
  }
  catch (e) {
    finishTestDefault();
  }
}
function finishTestTimeout ( aTimer ) { ok ( false , "Test timed out. Maximum time allowed is " + ( TEST_TIMEOUT / 1000 ) + " seconds" ) ; try { finishTest ( ) ; } catch ( e ) { finishTestDefault ( ) ; } }
nsITimerCallback for the timeout timer to cleanly finish a test if the Update
 Window doesn't close for a test.
nsITimerCallback for the timeout timer to cleanly finish a test if the Update Window doesn ' t close for a test .