parser/htmlparser/tests/mochitest/file_bug534293.sjs
author Michael Wu <mwu@mozilla.com>
Sat, 06 Aug 2011 22:03:32 -0700
changeset 73984 f7dc94e1b75cb1a755a4872176602433bb33c2ba
parent 48404 e278b19aa8cad518c842729c4a0bb7bde035a3e6
permissions -rw-r--r--
Bug 676465 - Replace PRBool with boolean in IDL files, r=bsmedberg

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.');");
  }
}