tor-browser

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

event-abort.any.js (387B)


      1 // META: title=XMLHttpRequest: abort event
      2 
      3 var test = async_test();
      4 test.step(function () {
      5  var client = new XMLHttpRequest();
      6  client.onabort = test.step_func(function () {
      7    test.done();
      8  });
      9  client.open("GET", "resources/well-formed.xml");
     10  client.send(null);
     11  client.abort();
     12  test.step_timeout(() => {
     13    assert_unreached("onabort not called after 4 ms");
     14  }, 4);
     15 });