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

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 var timer;
     3 function handleRequest(request, response)
     4 {
     5   response.setHeader("Cache-Control", "no-cache", false);
     6   response.setHeader("Content-Type", "text/javascript", false);
     7   response.write("ok(true, 'Slow script ran.');");
     8   response.processAsync();
     9   timer = Components.classes["@mozilla.org/timer;1"]
    10     .createInstance(Components.interfaces.nsITimer);
    11   timer.initWithCallback(function() {
    12       response.finish();
    13     }, 500, Components.interfaces.nsITimer.TYPE_ONE_SHOT);
    14 }

mercurial