53 srv.registerPathHandler(
"/lots-of-leading-blank-lines",
55 srv.registerPathHandler(
"/very-long-request-line",
74 response.setStatusLine(request.httpVersion, 200,
"TEST PASSED");
76 var
path =
"/very-long-request-line?";
78 for (var
i = 0;
i < 10;
i++)
80 str =
"GET /very-long-request-line?" +
gibberish +
" HTTP/1.1\r\n" +
81 "Host: localhost:4444\r\n" +
84 for (var
i = 0;
i <
str.length;
i += 50)
91 do_check_eq(iter.next(),
"HTTP/1.1 200 TEST PASSED");
99 "Path: /very-long-request-line",
116 response.setStatusLine(request.httpVersion, 200,
"TEST PASSED");
119 for (var
i = 0;
i < 14;
i++)
120 blankLines += blankLines;
122 "GET /lots-of-leading-blank-lines HTTP/1.1\r\n" +
123 "Host: localhost:4444\r\n" +
126 for (var
i = 0;
i <
str.length;
i += 100)
133 do_check_eq(iter.next(),
"HTTP/1.1 200 TEST PASSED");
141 "Path: /lots-of-leading-blank-lines",
function lotsOfLeadingBlankLines(request, response)
do_check_eq(typeof PlacesUtils,"object")
function checkLotsOfLeadingBlankLines(data)
function skipHeaders(iter)
function expectLines(iter, expectedLines)
function runRawTests(testArray, done)
function checkVeryLongRequestLine(data)
function writeDetails(request, response)
function RawTest(host, port, data, responseCheck)
function testComplete(srv)
function veryLongRequestLine(request, response)
_getSelectedPageStyle s i
function LineIterator(data)