tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

DOMContentLoaded-defer.js (545B)


      1 t.step(function() {
      2  assert_false(dcl, "DOMContentLoaded should not have fired before executing " +
      3                    "a defer script");
      4 
      5  t.step_timeout(function() {
      6    assert_false(dcl, "DOMContentLoaded should not have fired before " +
      7                      "executing a task queued from a defer script");
      8    t.step_timeout(function() {
      9      assert_true(dcl, "DOMContentLoaded should have fired in a task that " +
     10                       "was queued after the DOMContentLoaded task was queued");
     11      t.done();
     12    }, 0);
     13  }, 0);
     14 });