[wpt-sync] Sync PR 35960 - [beacon-api] Fix sendondiscard web tests's assertions
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox107 fixed)
Tracking | Status | |
---|---|---|
firefox107 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 35960 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/35960
Details from upstream follow.
Ming-Ying Chung <mych@chromium.org> wrote:
[beacon-api] Fix sendondiscard web tests's assertions
Move sendondiscard web tests to
wpt_internal/
:Tests in this file were not working properly as the BackgroundSync
permission is set toDenied
by default in the web test runner.
Moving towpt_internal/
allows the use of
internals.setPermission()
API.There was also a bug in
expectBeacon()
function which didn't
check the total number of sent beacons properly.This CL fixes the above issues.
Bug: 1293679,1364348
Change-Id: Ia037080f94303279154fa0d71d33cf364712590c
Reviewed-on: https://chromium-review.googlesource.com/3907264
WPT-Export-Revision: 2078510cf36d6b56358cf9e000c0f734f80cdfda
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
Assignee | ||
Comment 3•3 years ago
|
||
Assignee | ||
Comment 4•3 years ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 7 tests
Status Summary
Firefox
ERROR
: 7
Chrome
ERROR
: 7
Safari
ERROR
: 7
Links
Details
New Tests That Don't Pass
- /pending_beacon/pending_beacon-basic.tentative.window.html [wpt.fyi]:
ERROR
(Chrome:ERROR
, Safari:ERROR
) - /pending_beacon/pending_beacon-deactivate.tentative.window.html [wpt.fyi]:
ERROR
(Chrome:ERROR
, Safari:ERROR
) - /pending_beacon/pending_beacon-sendnow.tentative.window.html [wpt.fyi]:
ERROR
(Chrome:ERROR
, Safari:ERROR
) - /pending_beacon/pending_get_beacon-cors.tentative.https.window.html [wpt.fyi]:
ERROR
(Chrome:ERROR
, Safari:ERROR
) - /pending_beacon/pending_get_beacon-send.tentative.window.html [wpt.fyi]:
ERROR
(Chrome:ERROR
, Safari:ERROR
) - /pending_beacon/pending_post_beacon-cors.tentative.https.window.html [wpt.fyi]:
ERROR
(Chrome:ERROR
, Safari:ERROR
) - /pending_beacon/pending_post_beacon-sendwithdata.tentative.window.html [wpt.fyi]:
ERROR
(Chrome:ERROR
, Safari:ERROR
)
![]() |
||
Comment 6•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3c939d46ada4
https://hg.mozilla.org/mozilla-central/rev/066b8de74130
Description
•