abort-with-error.any.js (380B)
1 // META: title=XMLHttpRequest: abort() still works when error thrown internally 2 "use strict"; 3 4 const test_runner = async_test(); 5 6 test_runner.step(() => { 7 const client = new XMLHttpRequest(); 8 9 client.open("GET", "invalid-protocol://example.com", true); 10 client.onabort = test_runner.step_func(() => { 11 test_runner.done(); 12 }); 13 14 client.send(null); 15 client.abort(); 16 });