49 srv.registerPathHandler(
"/path-handler",
pathHandler);
62 response.setHeader(
"Cache-Control",
"no-cache",
false);
64 response.setHeader(
"Proxy-Authenticate",
"First line 1",
true);
65 response.setHeader(
"Proxy-Authenticate",
"Second line 1",
true);
66 response.setHeader(
"Proxy-Authenticate",
"Third line 1",
true);
68 response.setHeader(
"WWW-Authenticate",
"Not merged line 1",
false);
69 response.setHeader(
"WWW-Authenticate",
"Not merged line 2",
true);
71 response.setHeader(
"WWW-Authenticate",
"First line 2",
false);
72 response.setHeader(
"WWW-Authenticate",
"Second line 2",
true);
73 response.setHeader(
"WWW-Authenticate",
"Third line 2",
true);
75 response.setHeader(
"X-Single-Header-Merge",
"Single 1",
true);
76 response.setHeader(
"X-Single-Header-Merge",
"Single 2",
true);
84 new Test(
"http://localhost:4444/path-handler",
91 headerValue = ch.getResponseHeader(
"Proxy-Authenticate");
92 do_check_eq(headerValue,
"First line 1\nSecond line 1\nThird line 1");
93 headerValue = ch.getResponseHeader(
"WWW-Authenticate");
94 do_check_eq(headerValue,
"First line 2\nSecond line 2\nThird line 2");
95 headerValue = ch.getResponseHeader(
"X-Single-Header-Merge");
do_check_eq(typeof PlacesUtils,"object")
function runHttpTests(testArray, done)
function testComplete(srv)
function Test(path, initChannel, onStartRequest, onStopRequest)