Closed Bug 1613849 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 21652 - service worker: Add test for FetchEvent.handled

Categories

(Core :: DOM: Service Workers, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 21652 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/21652
Details from upstream follow.

Ting Shao <ting.shao@intel.com> wrote:

service worker: Add test for FetchEvent.handled

The spec PR is: https://github.com/w3c/ServiceWorker/pull/1496

Component: web-platform-tests → DOM: Service Workers
Product: Testing → Core

CI Results

Ran 13 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 45 tests

Status Summary

Firefox

OK : 1
PASS : 2[GitHub] 46[Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-android-em-7.0-x86_64-opt-geckoview, Gecko-linux1804-64-asan-opt, Gecko-linux1804-64-debug, Gecko-linux1804-64-opt, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-64-debug, Gecko-windows10-64-opt, Gecko-windows10-64-qr-debug, Gecko-windows10-64-qr-opt, Gecko-windows7-32-debug, Gecko-windows7-32-opt]
FAIL : 5

Chrome

OK : 1
PASS : 2
FAIL : 5

Safari

PASS : 2
FAIL : 5
ERROR: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/service-workers/service-worker/fetch-event-handled.https.html
FetchEvent.handled should reject when the promise provided to respondWith() is rejected: FAIL (Chrome: FAIL, Safari: FAIL)
FetchEvent.handled should resolve when the promise provided to respondWith() is resolved: FAIL (Chrome: FAIL, Safari: FAIL)
FetchEvent.handled should resolve when respondWith() is not called: FAIL (Chrome: FAIL, Safari: FAIL)
FetchEvent.handled should reject when the promise provided to respondWith() is resolved to an invalid response: FAIL (Chrome: FAIL, Safari: FAIL)
FetchEvent.handled should reject when respondWith() is not called and the event is canceled: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/57bce08351fe [wpt PR 21652] - service worker: Add test for FetchEvent.handled, a=testonly https://hg.mozilla.org/integration/autoland/rev/4b7a4bb50c75 [wpt PR 21652] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.