B2G/gecko/browser/components/downloads/test/browser/head.js
/**
   * Continues the currently running test.
   *
   * @param aEventResult
   *        This will be the return value of the yield operator in the test.
   */
Continues the currently running test.
@param aEventResult
This will be the return value of the yield operator in the test.
Continues the currently running test . @param aEventResult This will be the return value of the yield operator in the test .
function TR_continueTest(aEventResult) {
    testRunner._lastEventResult = aEventResult;
    if (testRunner._testRunning) {
      testRunner._eventRaised = true;
      return;
    }
    testRunner._testRunning = true;
    try {
      do {
        testRunner._eventRaised = false;
        testRunner._testIterator.send(testRunner._lastEventResult);
      } while (testRunner._eventRaised);
    }
    catch (e) {
      if (!(e instanceof StopIteration))
        ok(false, e);
      finish();
    }
    testRunner._testRunning = false;
  }
function TR_continueTest ( aEventResult ) { testRunner . _lastEventResult = aEventResult ; if ( testRunner . _testRunning ) { testRunner . _eventRaised = true ; return ; } testRunner . _testRunning = true ; try { do { testRunner . _eventRaised = false ; testRunner . _testIterator . send ( testRunner . _lastEventResult ) ; } while ( testRunner . _eventRaised ) ; } catch ( e ) { if ( ! ( e instanceof StopIteration ) ) ok ( false , e ) ; finish ( ) ; } testRunner . _testRunning = false ; }
Continues the currently running test.
Continues the currently running test .
// Store the last event result, or set it to undefined. // Never reenter the main loop, but notify that the event has been raised. // Enter the main iteration loop. // Call the iterator, but don't leave the loop if the expected event is // raised during the execution of the generator. // This block catches exceptions raised by the generator, including the // normal StopIteration exception.  Unexpected exceptions are reported as // test failures. // In any case, stop the tests in this file. // Wait for the next event or finish.