B2G/gecko/toolkit/components/downloads/test/unit/test_cancel_download_files_removed.js
// finishes tests if there are no more test files listed
finishes tests if there are no more test files listed
finishes tests if there are no more test files listed
function runNextTest()
{
  if (currentTest == tests.length) {
    httpserver.stop(do_test_finished);
    return;
  }
  let set = DownloadListener.set = tests[currentTest];
  currentTest++;
  let channel = NetUtil.newChannel("http://localhost:4444" + set.serverPath);
  let uriloader = Cc["@mozilla.org/uriloader;1"].getService(Ci.nsIURILoader);
  uriloader.openURI(channel, true, new WindowContext());
}
function runNextTest ( ) { if ( currentTest == tests . length ) { httpserver . stop ( do_test_finished ) ; return ; } let set = DownloadListener . set = tests [ currentTest ] ; currentTest ++ ; let channel = NetUtil . newChannel ( "http://localhost:4444" + set . serverPath ) ; let uriloader = Cc [ "@mozilla.org/uriloader;1" ] . getService ( Ci . nsIURILoader ) ; uriloader . openURI ( channel , true , new WindowContext ( ) ) ; }
finishes tests if there are no more test files listed
finishes tests if there are no more test files listed