B2G/gecko/netwerk/test/httpserver/test/head_utils.js
/** Kicks off running the next test in the array. */
Kicks off running the next test in the array.
Kicks off running the next test in the array .
function performNextTest()
  {
    if (++testIndex == testArray.length)
    {
      try
      {
        done();
      }
      catch (e)
      {
        do_report_unexpected_exception(e, "running test-completion callback");
      }
      return;
    }
    do_test_pending();
    var test = testArray[testIndex];
    var ch = makeChannel(test.path);
    try
    {
      test.initChannel(ch);
    }
    catch (e)
    {
      try
      {
        do_report_unexpected_exception(e, "testArray[" + testIndex + "].initChannel(ch)");
      }
      catch (e)
      {
      }
    }
    listener._channel = ch;
    ch.asyncOpen(listener, null);
  }
function performNextTest ( ) { if ( ++ testIndex == testArray . length ) { try { done ( ) ; } catch ( e ) { do_report_unexpected_exception ( e , "running test-completion callback" ) ; } return ; } do_test_pending ( ) ; var test = testArray [ testIndex ] ; var ch = makeChannel ( test . path ) ; try { test . initChannel ( ch ) ; } catch ( e ) { try { do_report_unexpected_exception ( e , "testArray[" + testIndex + "].initChannel(ch)" ) ; } catch ( e ) { } } listener . _channel = ch ; ch . asyncOpen ( listener , null ) ; }
Kicks off running the next test in the array.
Kicks off running the next test in the array .
/* swallow and let tests continue */