parser/htmlparser/tests/mochitest/file_bug534293.sjs
author Robert Sayre <sayrer@gmail.com>
Thu, 06 Jan 2011 21:36:24 -0500
changeset 60185 042f7e48aae93c254c2b1130adea27c365fda16f
parent 48404 e278b19aa8cad518c842729c4a0bb7bde035a3e6
child 596002 7c08aa0278932bb1239bdf3ca7960640ac792197
permissions -rw-r--r--
Backed out changeset d56f9c2057ed

function handleRequest(request, response)
{
  response.setHeader("Content-Type", "text/javascript", false);
  if (request.queryString.indexOf("report") != -1) {
    if (getState("loaded") == "loaded") {
      response.write("ok(false, 'This script was not supposed to get fetched.');");      
    } else {
      response.write("ok(true, 'This script was not supposed to get fetched.');");      
    }
  } else {
    setState("loaded", "loaded");
    response.write("ok(false, 'This script is not supposed to run.');");
  }
}