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

Issue 2900183002: Upstream service wrkr "skipWaiting" tests to WPT (Closed)

Created:
3 years, 7 months ago by mike3
Modified:
3 years, 6 months ago
Reviewers:
falken
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 wrkr "skipWaiting" tests to WPT **skip-waiting-installed** This test exists in both the Web Platform Tests project and in the Chromium project, but the two versions differ slightly. Update the Web Platform Tests version with improvements available in the Chromium version: - Remove unnecessary `<script>` include - Discourage worker termination by invoking `event.waitUntil` - Refactor promise management to avoid timing out in response to assertion failures - Introduce a "use strict" directive The Chromium version contains an additional assertion that is faulty. Extend the Web Platform Tests version with a corrected form of this assertion. Persist the Chromium version in its current state in order to preserve test coverage, but annotate that version with references to a new Chromium issue which tracks the resolution of the underlying bug. **skip-waiting-using-registration** This test exists in equivalent forms in both the Web Platform Tests project and in the Chromium project. Update the Web Platform Tests version: - Remove unnecessary `<script>` include - Refactor promise management to avoid timing out in response to assertion failures - Increase prevision of test "cleanup" logic - Introduce a "use strict" directive Remove the Chromium version of the test. **skip-waiting-without-client** This test exists in equivalent forms in both the Web Platform Tests project and in the Chromium project. Remove an unnecessary `<script>` include from the Web Platform Tests version. Remove the Chromium version of the test. **skip-waiting-without-using-registration** This test exists in equivalent forms in both the Web Platform Tests project and in the Chromium project. Update the Web Platform Tests version: - Remove unnecessary `<script>` include - Increase prevision of test "cleanup" logic - Introduce a "use strict" directive Remove the Chromium version of the test. **skip-waiting** This test exists in equivalent forms in both the Web Platform Tests project and in the Chromium project. Update the Web Platform Tests version: - Remove unnecessary `<script>` include - Increase prevision of test "cleanup" logic - Introduce a "use strict" directive Remove the Chromium version of the test. --- Remove the `skip-waiting-worker.js` "resource" file from the Chromium project as it is no longer referenced by any tests. BUG=688116, 725616 R=falken@chromium.org Review-Url: https://codereview.chromium.org/2900183002 Cr-Commit-Position: refs/heads/master@{#475361} Committed: https://chromium.googlesource.com/chromium/src/+/a03921af62dfc391b10999380a25e2baf2bf22bc

Patch Set 1 #

Total comments: 2

Patch Set 2 : Improve assertion message #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -288 lines) Patch
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/skip-waiting-installed-worker.js View 1 chunk +13 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/skip-waiting-installed.https.html View 2 chunks +11 lines, -10 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/skip-waiting-installed.https-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/skip-waiting-using-registration.https.html View 4 chunks +21 lines, -16 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/skip-waiting-without-client.https.html View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/skip-waiting-without-using-registration.https.html View 2 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/skip-waiting.https.html View 3 chunks +5 lines, -4 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium.skip-waiting-installed.html View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-installed-worker.js View 1 1 chunk +3 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-worker.js View 1 chunk +0 lines, -21 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/skip-waiting.html View 1 chunk +0 lines, -53 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/skip-waiting-installed.html View 1 chunk +0 lines, -62 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/skip-waiting-using-registration.html View 1 chunk +0 lines, -59 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/skip-waiting-without-client.html View 1 chunk +0 lines, -12 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/skip-waiting-without-using-registration.html View 1 chunk +0 lines, -41 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
mike3
Hi Matt, Would you mind reviewing this patch for me? Here's a diff of the ...
3 years, 7 months ago (2017-05-23 20:59:18 UTC) #1
falken
On 2017/05/23 20:59:18, mike3 wrote: > Hi Matt, > > Would you mind reviewing this ...
3 years, 7 months ago (2017-05-24 01:41:08 UTC) #2
mike3
On 2017/05/24 01:41:08, falken wrote: > On 2017/05/23 20:59:18, mike3 wrote: > > Hi Matt, ...
3 years, 7 months ago (2017-05-24 14:19:43 UTC) #3
falken
thanks, lgtm. Sorry for the delay. https://codereview.chromium.org/2900183002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-installed-worker.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-installed-worker.js (right): https://codereview.chromium.org/2900183002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-installed-worker.js#newcode27 third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-installed-worker.js:27: 'This assertion is ...
3 years, 6 months ago (2017-05-29 03:54:17 UTC) #4
mike3
> thanks, lgtm. Sorry for the delay. No problem at all. And thank you! https://codereview.chromium.org/2900183002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/skip-waiting-installed-worker.js ...
3 years, 6 months ago (2017-05-29 15:11:49 UTC) #5
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/2900183002/10001
3 years, 6 months ago (2017-05-29 15:12:32 UTC) #8
commit-bot: I haz the power
3 years, 6 months ago (2017-05-29 17:01:39 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:10001) as
https://chromium.googlesource.com/chromium/src/+/a03921af62dfc391b10999380a25...

Powered by Google App Engine
This is Rietveld 408576698