// SJS file for test_bug611182.html "use strict"; const TESTS = [ { ct: "text/html", val: "fooz bar", }, { ct: "text/html", val: "
fooz bar", }, { ct: "text/html", val: "fooz bar", }, { ct: "text/html", val: "fooz bar
", }, { ct: "text/html", val: "fooz bar
", }, { ct: "text/html", val: "fooz bar", }, { ct: "text/html", val: "fooz bar", }, { ct: "application/xhtml+xml", val: 'fooz bar', }, { ct: "application/xhtml+xml", val: 'fooz bar', }, { ct: "text/html", val: "fooz bar", }, { ct: "text/html", val: "", }, { ct: "text/html", val: "", }, { ct: "text/html", val: "", }, { ct: "text/html", val: "", }, { ct: "text/html", val: "", }, { ct: "text/html", val: "", }, { ct: "text/html", val: "", }, { ct: "text/html", val: "", }, { ct: "text/html", val: "", }, { ct: "text/html", val: "data:text/html,", }, { ct: "text/html", val: "", }, { ct: "text/html", val: "", }, { ct: "text/html", val: "", }, { ct: "text/html", val: "", }, ]; function handleRequest(request, response) { response.setHeader("Cache-Control", "no-cache", false); let query = request.queryString; if (query === "queryTotalTests") { response.setHeader("Content-Type", "text/html", false); response.write(TESTS.length); return; } var curTest = TESTS[query]; response.setHeader("Content-Type", curTest.ct, false); response.write(curTest.val); }