Open Bug 1332251 Opened 3 years ago Updated 5 months ago
.timeout tests to use Promises?
I wrote the original tests and implementation for XMLHttpRequest's timeout feature. Since then, there's been a number of intermittent failures because timeouts are inherently not guaranteed to run in the order of the delay you set them by. I've been thinking for a while that while the timeout feature itself relies on a certain number of milliseconds passing, the Promises API may provide a more reliable manner of scheduling the exercising of other features (resetting the timeout, or calling abort early, for instance). Promises were much less mature when I wrote the original feature and tests, and I certainly didn't know very much about them, if anything.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.