PageRenderTime 48ms CodeModel.GetById 46ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/parser/htmlparser/tests/mochitest/file_bug534293.sjs

http://github.com/zpao/v8monkey
Unknown | 14 lines | 14 code | 0 blank | 0 comment | 0 complexity | eec2a3ed9e01c06d55b7218618d7dab6 MD5 | raw file
 1function handleRequest(request, response)
 2{
 3  response.setHeader("Content-Type", "text/javascript", false);
 4  if (request.queryString.indexOf("report") != -1) {
 5    if (getState("loaded") == "loaded") {
 6      response.write("ok(false, 'This script was not supposed to get fetched.');");      
 7    } else {
 8      response.write("ok(true, 'This script was not supposed to get fetched.');");      
 9    }
10  } else {
11    setState("loaded", "loaded");
12    response.write("ok(false, 'This script is not supposed to run.');");
13  }
14}