Skip to content

Commit

Permalink
Bug 1459867 [wpt PR 10887] - Verify sync XHR does not fire progress e…
Browse files Browse the repository at this point in the history
…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

UltraBlame original commit: 816d4ef0a3dea89726812659ab06b401a4d7f94e
  • Loading branch information
marco-c committed Oct 3, 2019
1 parent c7fe9cd commit d152c4f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
14 changes: 14 additions & 0 deletions testing/web-platform/meta/MANIFEST.json
Expand Up @@ -378713,6 +378713,16 @@
{}
]
],
"xhr/sync-no-progress.any.js": [
[
"/xhr/sync-no-progress.any.html",
{}
],
[
"/xhr/sync-no-progress.any.worker.html",
{}
]
],
"xhr/template-element.html": [
[
"/xhr/template-element.html",
Expand Down Expand Up @@ -621070,6 +621080,10 @@
"42182437d8c1015339825c035127877f4970decb",
"testharness"
],
"xhr/sync-no-progress.any.js": [
"db6171c61a37cd98ea5b9c1549432f1e2b53e7eb",
"testharness"
],
"xhr/template-element.html": [
"748f12beaa646e244f8312afd545f56075cac727",
"testharness"
Expand Down
12 changes: 12 additions & 0 deletions testing/web-platform/tests/xhr/sync-no-progress.any.js
@@ -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();

assert_true(loadEventFired, 'load event should have fired');
}, 'progress event should not be fired by sync XHR');

0 comments on commit d152c4f

Please sign in to comment.