B2G/gecko/netwerk/test/httpserver/test/head_utils.js
/**
 * Create a completion callback which will stop the given server and end the
 * test, assuming nothing else remains to be done at that point.
 */
Create a completion callback which will stop the given server and end the
test, assuming nothing else remains to be done at that point.
Create a completion callback which will stop the given server and end the test assuming nothing else remains to be done at that point .
function testComplete(srv)
{
  return function complete()
  {
    do_test_pending();
    srv.stop(function quit() { do_test_finished(); });
  };
}
function testComplete ( srv ) { return function complete ( ) { do_test_pending ( ) ; srv . stop ( function quit ( ) { do_test_finished ( ) ; } ) ; } ; }
Create a completion callback which will stop the given server and end the
 test, assuming nothing else remains to be done at that point.
Create a completion callback which will stop the given server and end the test assuming nothing else remains to be done at that point .