41 const PREFIX =
"http://localhost:4444";
49 new Test(
PREFIX +
"/test_status_override.html",
51 new Test(
PREFIX +
"/test_status_override_nodesc.txt",
61 var cernDir = do_get_file(
"data/cern_meta/");
62 srv.registerDirectory(
"/", cernDir);
75 do_check_eq(ch.responseStatusText,
"Unimplemented");
77 do_check_eq(ch.getResponseHeader(
"Content-Type"),
"text/plain");
82 do_check_eq(ch.getResponseHeader(
"Content-Type"),
"text/html");
88 do_check_eq(ch.responseStatusText,
"Can't Find This");
100 do_check_eq(ch.responseStatusText,
"This Isn't A Server Error");
102 do_check_eq(ch.getResponseHeader(
"Foo-RFC"),
"3092");
103 do_check_eq(ch.getResponseHeader(
"Shaving-Cream-Atom"),
"Illudium Phosdex");
do_check_eq(typeof PlacesUtils,"object")
function runHttpTests(testArray, done)
function testComplete(srv)
function Test(path, initChannel, onStartRequest, onStopRequest)