B2G/gecko/toolkit/mozapps/update/test/chrome/utils.js
/**
 * Delayed default callback called using executeSoon in defaultCallback which
 * allows the wizard page buttons' disabled and hidden attributes to be set
 * before checking their values.
 */
Delayed default callback called using executeSoon in defaultCallback which
allows the wizard page buttons' disabled and hidden attributes to be set
before checking their values.
Delayed default callback called using executeSoon in defaultCallback which allows the wizard page buttons ' disabled and hidden attributes to be set before checking their values .
function delayedDefaultCallback() {
  if (!gTimeoutTimer) {
    debugDump("gTimeoutTimer is null... returning early");
    return;
  }
  debugDump("entering - TESTS[" + gTestCounter + "], pageid: " + gTest.pageid);
  is(gDocElem.currentPage.pageid, gTest.pageid,
     "Checking currentPage.pageid equals " + gTest.pageid + " after " +
     "executeSoon");
  checkButtonStates();
  if (gTest.extraDelayedCheckFunction) {
    debugDump("calling extraDelayedCheckFunction " +
              gTest.extraDelayedCheckFunction.name);
    gTest.extraDelayedCheckFunction();
  }
  gTest.ranTest = true;
  if (gTest.buttonClick) {
    debugDump("clicking " + gTest.buttonClick + " button");
    if(gTest.extraDelayedFinishFunction) {
      throw("Tests cannot have a buttonClick and an extraDelayedFinishFunction property");
    }
    gDocElem.getButton(gTest.buttonClick).click();
  }
  else if (gTest.extraDelayedFinishFunction) {
    debugDump("calling extraDelayedFinishFunction " +
              gTest.extraDelayedFinishFunction.name);
    gTest.extraDelayedFinishFunction();
  }
}
function delayedDefaultCallback ( ) { if ( ! gTimeoutTimer ) { debugDump ( "gTimeoutTimer is null... returning early" ) ; return ; } debugDump ( "entering - TESTS[" + gTestCounter + "], pageid: " + gTest . pageid ) ; is ( gDocElem . currentPage . pageid , gTest . pageid , "Checking currentPage.pageid equals " + gTest . pageid + " after " + "executeSoon" ) ; checkButtonStates ( ) ; if ( gTest . extraDelayedCheckFunction ) { debugDump ( "calling extraDelayedCheckFunction " + gTest . extraDelayedCheckFunction . name ) ; gTest . extraDelayedCheckFunction ( ) ; } gTest . ranTest = true ; if ( gTest . buttonClick ) { debugDump ( "clicking " + gTest . buttonClick + " button" ) ; if ( gTest . extraDelayedFinishFunction ) { throw ( "Tests cannot have a buttonClick and an extraDelayedFinishFunction property" ) ; } gDocElem . getButton ( gTest . buttonClick ) . click ( ) ; } else if ( gTest . extraDelayedFinishFunction ) { debugDump ( "calling extraDelayedFinishFunction " + gTest . extraDelayedFinishFunction . name ) ; gTest . extraDelayedFinishFunction ( ) ; } }
Delayed default callback called using executeSoon in defaultCallback which
 allows the wizard page buttons' disabled and hidden attributes to be set
 before checking their values.
Delayed default callback called using executeSoon in defaultCallback which allows the wizard page buttons ' disabled and hidden attributes to be set before checking their values .
// Verify the pageid hasn't changed after executeSoon was called. // Perform delayed extra checks if specified by the test // Used to verify that this test has been performed