Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /xhr/xhr-timeout-longtask.any.html - WPT Dashboard Interop Dashboard
- /xhr/xhr-timeout-longtask.any.worker.html - WPT Dashboard Interop Dashboard
async_test(function() {
var client = new XMLHttpRequest();
client.open("GET", "resources/delay.py?ms=100", true);
client.timeout = 150;
client.ontimeout = this.step_func(assert_unreached);
client.onloadend = () => this.done();
client.send();
const start = performance.now();
while (performance.now() - start < 200) { }
}, "Long tasks should not trigger load timeout")