41 const BASE =
"http://localhost:4444";
49 ch.loadFlags |=
Ci.nsIRequest.LOAD_BYPASS_CACHE;
55 do_check_false(ch.requestSucceeded);
62 do_check_true(ch.requestSucceeded);
63 do_check_eq(ch.getResponseHeader(
"Override-Succeeded"),
"yes");
75 do_check_true(ch.requestSucceeded);
78 actualFile.append(
"test_registerdirectory.js");
80 actualFile.fileSize.toString());
135 srv.registerPathHandler(
"/test_registerdirectory.js",
148 function init_registerDirectory6(ch)
151 srv.registerPathHandler(
"/test_registerdirectory.js",
null);
184 srv.registerPathHandler(
"/test_registerdirectory.js",
216 srv.registerPathHandler(
"/test_registerdirectory.js",
null);
227 test =
new Test(
BASE +
"/foo/test_registerdirectory.js",
243 test =
new Test(
BASE +
"/foo/test_registerdirectory.js/test_registerdirectory.js",
254 test =
new Test(
BASE +
"/foo/test_registerdirectory.js/test_registerdirectory.js",
258 srv.registerDirectory(
"/foo/test_registerdirectory.js/",
270 test =
new Test(
BASE +
"/foo/test_registerdirectory.js",
279 test =
new Test(
BASE +
"/foo/test_registerdirectory.js",
283 srv.registerDirectory(
"/foo/",
null);
294 test =
new Test(
BASE +
"/foo/test_registerdirectory.js/test_registerdirectory.js",
303 test =
new Test(
BASE +
"/foo/test_registerdirectory.js/test_registerdirectory.js",
307 srv.registerDirectory(
"/foo/test_registerdirectory.js/",
null);
321 testsDirectory = do_get_cwd();
335 response.setStatusLine(
"1.1", 200,
"OK");
336 response.setHeader(
"Override-Succeeded",
"yes",
false);
338 var body =
"success!";
339 response.bodyOutputStream.write(body, body.length);
do_check_eq(typeof PlacesUtils,"object")
function runHttpTests(testArray, done)
function override_test_registerdirectory(metadata, response)
function checkOverride(ch)
function fileContents(file)
function checkFile(ch, cx, status, data)
function testComplete(srv)
function Test(path, initChannel, onStartRequest, onStopRequest)