forked from mykmelez/gecko
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1459867 [wpt PR 10887] - Verify sync XHR does not fire progress e…
…vent, a=testonly Automatic update from web-platform-testsXHR: sync XMLHttpRequest does not fire an event named progress For whatwg/xhr#208. -- wpt-commits: 10f586a6d2f606b86310ba05da18ed13a78c67f4 wpt-pr: 10887
- Loading branch information
1 parent
8057b04
commit 072dbdd
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
test(t => { | ||
let xhr = new XMLHttpRequest(); | ||
let loadEventFired = false; | ||
xhr.onprogress = t.unreached_func('progress event should not be fired'); | ||
xhr.onload = () => { | ||
loadEventFired = true; | ||
}; | ||
xhr.open('GET', 'resources/trickle.py?count=4&delay=150', false); | ||
xhr.send(); | ||
// Check the load event as a sanity check that the test is working. | ||
assert_true(loadEventFired, 'load event should have fired'); | ||
}, 'progress event should not be fired by sync XHR'); |