51 if (
"@mozilla.org/windows-registry-key;1" in Components.classes)
53 dumpn(
"*** not running test_start_stop.js on Windows for now, because " +
58 dumpn(
"*** run_test");
66 do_throw(
"starting a started server");
76 do_throw(
"missing argument to stop");
86 do_throw(
"null argument to stop");
110 dumpn(
"*** run_test_2");
120 do_throw(
"two servers on one port?");
130 srv.stop({onStopped:
function()
146 do_throw(
"error stopping with an object: " + e);
152 dumpn(
"*** run_test_3");
156 srv.registerPathHandler(
"/handle",
handle);
171 dumpn(
"*** run_test_4");
183 response.processAsync();
185 dumpn(
"*** stopping server...");
199 response.processAsync();
200 do_throw(
"late processAsync didn't throw?");
213 dumpn(
"*** server really, fully shut down now");
function runHttpTests(testArray, done)
function handle(request, response)
function Test(path, initChannel, onStartRequest, onStopRequest)
function callLater(msecs, callback)
function isException(e, code)