58 test =
new Test(
"http://localhost:4444/",
63 ch.loadFlags |=
Ci.nsIRequest.LOAD_BYPASS_CACHE;
67 do_check_eq(ch.getResponseHeader(
"Content-Length"),
"10");
72 do_check_true(Components.isSuccessCode(status));
76 test =
new Test(
"http://localhost:4444/",
85 do_check_true(Components.isSuccessCode(status));
92 var
dir = metadata.getProperty(
"directory");
93 do_check_true(dir !=
null);
94 do_check_true(dir instanceof
Ci.nsIFile);
97 response.write(
"directory!");
function startDefaultIndexHandler(ch, cx)
do_check_eq(typeof PlacesUtils,"object")
function runHttpTests(testArray, done)
function stopCustomIndexHandler(ch, cx, status, data)
function stopDefaultIndexHandler(ch, cx, status, data)
function startCustomIndexHandler(ch, cx)
function myIndexHandler(metadata, response)
function testComplete(srv)
function Test(path, initChannel, onStartRequest, onStopRequest)