Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(840)

Issue 2836233002: Upstream service worker `fetch` tests to WPT (Closed)

Created:
3 years, 8 months ago by mike3
Modified:
3 years, 7 months ago
CC:
blink-reviews, blink-reviews-w3ctests_chromium.org, chromium-reviews, falken+watch_chromium.org, horo+watch_chromium.org, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, kinuko+serviceworker, michaeln, nhiroki, serviceworker-reviews, shimazu+serviceworker_chromium.org, tzik
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Upstream service worker `fetch` tests to WPT Reconcile the remaining Service Worker tests that concern the Fetch standard. As noted below, some tests must be persisted in the Chromium project due to unresolved timeout issues in the build environment (see https://crbug.com/658997). **fetch-event-async-respond-with** The Chromium-specific version of this test is almost identical to the version provided by the Web Platform Test suite, though it suffers from timeout issues in the build environment. Rename the Chromium-specific version to document its deprecated status and improve the upstream version to defer frame removal and omit unnecessary resource. **fetch-event-network-error** The upstream version of this test is almost identical to the Chromium-specific version. The Chromium-specific version of this test is almost identical to the version available upstream. The upstream version is preferable because it contains an additional assertion not found in the Chromium version. Remove the Chromium-specific version of this test, and update the upstream version to omit an unnecessary resource. **fetch-event-respond-with-argument** Re-locate Chromium-specific test to the Web Platform Test suite directory so that it may be included in that project. **fetch-event-respond-with-stops-propagation** The Chromium-specific version of this test is almost identical to the version provided by the Web Platform Test suite, though it suffers from timeout issues in the build environment. Rename the Chromium-specific version to reflect its deprecated status, and improve the upstream version to defer frame removal and omit unnecessary resource. **fetch-event** Remove sub-tests from the Chromium-specific version that are present in the upstream version. Rename the test file to reflect the implementation-specific nature of the test. Extend the upstream version with a relaxed version of Chromium's sub-test for request headers. In both versions, formalize tear down logic to ensure consistent frame removal and subsequent client de-registration. BUG=688116, 658997 R=mek@chromium.org Review-Url: https://codereview.chromium.org/2836233002 Cr-Commit-Position: refs/heads/master@{#468341} Committed: https://chromium.googlesource.com/chromium/src/+/07b83d70ca740271a8acaa3c3e9b32eb01d5c48b

Patch Set 1 #

Total comments: 12

Patch Set 2 : Incorporate review feedback #

Patch Set 3 : Extend "-expected.txt" file with reference to new sub-test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -617 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/enable-blink-features=LayoutNG View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-event-async-respond-with.https.html View 3 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-event-network-error.https.html View 1 chunk +0 lines, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-event-respond-with-argument.https.html View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-event-respond-with-stops-propagation.https.html View 1 3 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-event.https.html View 1 chunk +29 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-event.https-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-event-respond-with-argument-iframe.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-event-respond-with-argument-worker.js View 0 chunks +-1 lines, --1 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-event-test-worker.js View 2 chunks +6 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium.fetch-event-async-respond-with.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium.fetch-event-headers.html View 1 1 chunk +41 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium.fetch-event-respond-with-stops-propagation.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event.html View 1 chunk +0 lines, -285 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-async-respond-with.html View 1 chunk +0 lines, -33 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-network-error.html View 1 chunk +0 lines, -41 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-respond-with-argument.html View 1 chunk +0 lines, -41 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-respond-with-stops-propagation.html View 1 chunk +0 lines, -34 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-event-network-error-controllee-iframe.html View 1 chunk +0 lines, -59 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-event-network-error-worker.js View 1 chunk +0 lines, -46 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-event-respond-with-argument-iframe.html View 1 chunk +0 lines, -55 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-event-respond-with-argument-worker.js View 1 chunk +0 lines, -14 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
mike3
Hi mek: would you mind taking a look?
3 years, 8 months ago (2017-04-24 22:42:55 UTC) #1
Marijn Kruisselbrink
sorry for the long delay in reviewing https://codereview.chromium.org/2836233002/diff/1/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-event-respond-with-stops-propagation.https.html File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-event-respond-with-stops-propagation.https.html (right): https://codereview.chromium.org/2836233002/diff/1/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-event-respond-with-stops-propagation.https.html#newcode19 third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-event-respond-with-stops-propagation.https.html:19: add_completion_callback(function() { ...
3 years, 7 months ago (2017-04-27 17:05:24 UTC) #2
mike3
Thanks for the review, Mek! I'm going to submit my latest work as a series ...
3 years, 7 months ago (2017-04-27 18:27:19 UTC) #3
Marijn Kruisselbrink
thanks, lgtm
3 years, 7 months ago (2017-04-27 18:44:03 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2836233002/20001
3 years, 7 months ago (2017-04-27 18:59:23 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/440591)
3 years, 7 months ago (2017-04-27 19:53:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2836233002/40001
3 years, 7 months ago (2017-05-01 16:16:30 UTC) #11
commit-bot: I haz the power
3 years, 7 months ago (2017-05-01 17:25:37 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/07b83d70ca740271a8acaa3c3e9b...

Powered by Google App Engine
This is Rietveld 408576698