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)
    {
      do_test_finished();
      try
      {
        done();
      }
      catch (e)
      {
        do_report_unexpected_exception(e, "running test-completion callback");
      }
      return;
    }
    var rawTest = testArray[testIndex];
    var transport =
      sts.createTransport(null, 0, rawTest.host, rawTest.port, null);
    var inStream = transport.openInputStream(0, 0, 0);
    var outStream  = transport.openOutputStream(0, 0, 0);
    dataIndex = 0;
    received = "";
    waitForMoreInput(inStream);
    waitToWriteOutput(outStream);
  }
function performNextTest ( ) { if ( ++ testIndex == testArray . length ) { do_test_finished ( ) ; try { done ( ) ; } catch ( e ) { do_report_unexpected_exception ( e , "running test-completion callback" ) ; } return ; } var rawTest = testArray [ testIndex ] ; var transport = sts . createTransport ( null , 0 , rawTest . host , rawTest . port , null ) ; var inStream = transport . openInputStream ( 0 , 0 , 0 ) ; var outStream = transport . openOutputStream ( 0 , 0 , 0 ) ; dataIndex = 0 ; received = "" ; waitForMoreInput ( inStream ) ; waitToWriteOutput ( outStream ) ; }
Kicks off running the next test in the array.
Kicks off running the next test in the array .
// reset