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

Issue 2880823002: Upstream service worker `ready` test to WPT (Closed)

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

Description

Upstream service worker `ready` test to WPT This test exists in both WPT and the Chromium project tree. Although the two implementations assert the same behavior, the Chromium version is preferable for a number of reasons: - It uses the `promise_test` function and expresses the test body in terms of promises, resulting in improved test readability. - It includes additional sub-tests Update the upstream version of the test with these improvements. In addition: - remove unnecessary precaution from newly-introduced sub-tests - remove the dynamically-generated iframe at the conclusion of each sub-test Remove the Chromium-specific version of the test. BUG=688116 R=falken@chromium.org Review-Url: https://codereview.chromium.org/2880823002 Cr-Commit-Position: refs/heads/master@{#472021} Committed: https://chromium.googlesource.com/chromium/src/+/981a96bc5df9e0c392193199c5a6d701a973f0f0

Patch Set 1 #

Total comments: 6

Patch Set 2 : Incorporate review feedback #

Patch Set 3 : Stengthen expectation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -276 lines) Patch
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ready.https.html View 1 2 7 chunks +123 lines, -44 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/register-iframe.html View 0 chunks +-1 lines, --1 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/ready.html View 1 chunk +0 lines, -229 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/register-iframe.html View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
mike3
Hi Matt, The change set here demonstrates the modifications to the WPT test, but it ...
3 years, 7 months ago (2017-05-12 18:54:22 UTC) #1
falken
lgtm I'm not sure I understand when to use add_cleanup vs add_result_callback vs add_completion_callback, though ...
3 years, 7 months ago (2017-05-15 05:48:59 UTC) #2
mike3
I've been using `add_cleanup` for synchronous operations and `add_completion_callback` for asynchronous operations. It doesn't matter ...
3 years, 7 months ago (2017-05-15 19:48:27 UTC) #3
-jakearchibald-
https://codereview.chromium.org/2880823002/diff/1/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ready.https.html File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ready.https.html (right): https://codereview.chromium.org/2880823002/diff/1/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ready.https.html#newcode61 third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ready.https.html:61: 'controlled document should have a controller'); I agree that ...
3 years, 7 months ago (2017-05-15 20:44:56 UTC) #5
mike3
Think this is ready to land, Matt? https://codereview.chromium.org/2880823002/diff/1/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ready.https.html File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ready.https.html (right): https://codereview.chromium.org/2880823002/diff/1/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ready.https.html#newcode61 third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ready.https.html:61: 'controlled document ...
3 years, 7 months ago (2017-05-15 21:48:27 UTC) #6
falken
lgtm, thanks Jake for chiming in!
3 years, 7 months ago (2017-05-16 04:05:51 UTC) #7
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/2880823002/40001
3 years, 7 months ago (2017-05-16 04:06:31 UTC) #9
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 05:39:56 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/981a96bc5df9e0c392193199c5a6...

Powered by Google App Engine
This is Rietveld 408576698