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

Issue 2904063003: Upstream service worker "update" 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 worker "update" tests to WPT **update-served-from-cached** This test asserts caching behavior, but the relevant standards do not explicitly require conformance in this regard. The behavior under test is therefore not generally enforceable in the Web Platform Tests project. Label the test as Chromium-specific and include an in-line comment to document this distinction. **update** This test exists in both WPT and the Chromium project tree. The WPT version is slightly weaker because it accounts for a condition that is not possible according to the latest version of the Service Workers specification [1]. > # Install > > [...] > > 16. Run the Update Registration State algorithm passing registration, > "waiting" and registration’s installing worker as the arguments. > 17. Run the Update Registration State algorithm passing registration, > "installing" and null as the arguments. > 18. Run the Update Worker State algorithm passing registration’s > waiting worker and installed as the arguments. > 19. Invoke Finish Job with job. > 20. Wait for all the tasks queued by Update Worker State invoked in > this algorithm have executed. > 21. Invoke Try Activate with registration. Due to step 20, worker activation does not occur until all prior tasks (which includes microtasks such as the Promise handler microtask created in the test's body) have executed. Remove the conditional logic from the WPT version. Ensure iframe removal takes place regardless of test outcome. Add a 'use strict' directive to script body. Remove unnecessary invocation of `Test#done`. Remove the Chromium version of the test. [1] https://w3c.github.io/ServiceWorker/#installation-algorithm retrieved on 17.05.25 BUG=688116 R=falken@chromium.org Review-Url: https://codereview.chromium.org/2904063003 Cr-Commit-Position: refs/heads/master@{#475294} Committed: https://chromium.googlesource.com/chromium/src/+/ebf9c47dfbfe4bba16e5e7997fb382603e3c2de2

Patch Set 1 #

Patch Set 2 : Move Chromium-specific test #

Messages

Total messages: 8 (4 generated)
mike3
Hi Matt, Here's a comparison of the migrated test files before application of this patch. ...
3 years, 7 months ago (2017-05-25 21:46:22 UTC) #2
falken
Thanks for the detailed investigation and following up on net-dev. It's interesting that cache behavior ...
3 years, 6 months ago (2017-05-29 04:35:08 UTC) #3
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/2904063003/20001
3 years, 6 months ago (2017-05-29 04:41:44 UTC) #5
commit-bot: I haz the power
3 years, 6 months ago (2017-05-29 05:56:49 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/ebf9c47dfbfe4bba16e5e7997fb3...

Powered by Google App Engine
This is Rietveld 408576698