tor-browser

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

historical-progress-event.window.js (592B)


      1 async_test(t => {
      2  const img = new Image();
      3  t.add_cleanup(() => img.remove());
      4  img.onloadstart = img.onprogress = img.onloadend = t.unreached_func("progress event fired");
      5  img.onload = t.step_func_done(e => {
      6    assert_true(e instanceof Event);
      7    assert_false(e instanceof ProgressEvent);
      8  });
      9  img.src = "/images/rrgg-256x256.png";
     10  document.body.append(img);
     11 }, "<img> does not support ProgressEvent or loadstart/progress/loadend");
     12 
     13 test(t => {
     14  assert_equals(document.body.onloadend, undefined);
     15  assert_equals(window.onloadend, undefined);
     16 }, "onloadend is not exposed");