dom/abort/tests/slow.sjs
author Rob Wood <rwood@mozilla.com>
Tue, 25 Jun 2019 08:28:58 +0000
changeset 480057 d5b60a2a9cd9ebebe089503474ace5dd2c2eaf9a
parent 377919 68f129ac537844793cbff25c318e7fd770b3a789
permissions -rw-r--r--
Bug 1546661 - Enable cold page loads tests for Reference Browser on Try r=perftest-reviewers,Bebe,sparky Differential Revision: https://phabricator.services.mozilla.com/D35568

function handleRequest(request, response)
{
  response.processAsync();

  timer = Components.classes["@mozilla.org/timer;1"].
          createInstance(Components.interfaces.nsITimer);
  timer.init(function() {
    response.write("Here the content. But slowly.");
    response.finish();
  }, 1000, Components.interfaces.nsITimer.TYPE_ONE_SHOT);
}