70 do_check_eq(channel.responseStatusText, statusText);
72 var respMaj = {}, respMin = {};
73 channel.getResponseVersion(respMaj, respMin);
90 test =
new Test(
"http://localhost:4444/no/setstatusline",
99 do_check_true(Components.isSuccessCode(status));
106 response.setStatusLine(
"1.0", 200,
"OK");
108 test =
new Test(
"http://localhost:4444/http1_0",
120 response.setStatusLine(
"1.1", 200,
"OK");
122 test =
new Test(
"http://localhost:4444/http1_1",
136 response.setStatusLine(
" 1.0", 200,
"FAILED");
140 response.setHeader(
"Passed",
"true",
false);
143 test =
new Test(
"http://localhost:4444/invalidVersion",
149 do_check_eq(ch.getResponseHeader(
"Passed"),
"true");
158 response.setStatusLine(
"1.0", 1000,
"FAILED");
162 response.setHeader(
"Passed",
"true",
false);
165 test =
new Test(
"http://localhost:4444/invalidStatus",
175 response.setStatusLine(
"1.0", 200,
"FAILED\x01");
179 response.setHeader(
"Passed",
"true",
false);
182 test =
new Test(
"http://localhost:4444/invalidDescription",
190 response.setStatusLine(
"1.1", 617,
"Crazy");
192 test =
new Test(
"http://localhost:4444/crazyCode",
204 response.setStatusLine(
null, 255,
"NULL");
206 test =
new Test(
"http://localhost:4444/nullVersion",
function noSetstatusline(metadata, response)
do_check_eq(typeof PlacesUtils,"object")
function stop(ch, cx, status, data)
function http1_0(metadata, response)
function startHttp1_0(ch, cx)
function invalidDescription(metadata, response)
function startPassedTrue(ch, cx)
function runHttpTests(testArray, done)
function nullVersion(metadata, response)
function startCrazy(ch, cx)
function invalidStatus(metadata, response)
function invalidVersion(metadata, response)
function crazyCode(metadata, response)
function testComplete(srv)
function Test(path, initChannel, onStartRequest, onStopRequest)
function http1_1(metadata, response)
function checkStatusLine(channel, httpMaxVer, httpMinVer, httpCode, statusText)
function startHttp1_1(ch, cx)
function startNullVersion(ch, cx)
function startNoSetStatusLine(ch, cx)