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

Issue 1604893002: ServiceWorker: Rewrite windowclient-navigate.html test. (Closed)

Created:
4 years, 11 months ago by zino
Modified:
4 years, 10 months ago
Reviewers:
nhiroki
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, falken, kinuko+serviceworker, blink-reviews, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Rewrite windowclient-navigate.html test. This CL splits the test into each test case to find a failure reason easily. Also, adds a test case for in-scope-but-not-controlled to the test. The test case comes from the spec dicussion[1] and the comment[2] in other CL. [1] https://github.com/slightlyoff/ServiceWorker/issues/752 [2] https://codereview.chromium.org/1481753002/#msg8 BUG=567049 Committed: https://crrev.com/47a728652bd829f25edff357b5a640f9c78c328f Cr-Commit-Position: refs/heads/master@{#375629}

Patch Set 1 #

Total comments: 2

Patch Set 2 : rewrite test #

Patch Set 3 : Fixed bot error #

Total comments: 1

Patch Set 4 : #

Total comments: 21

Patch Set 5 : #

Total comments: 3

Patch Set 6 : #

Total comments: 6

Patch Set 7 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -84 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js View 1 2 3 4 5 6 1 chunk +37 lines, -18 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/windowclient-navigate.html View 1 2 3 4 5 6 1 chunk +129 lines, -66 lines 0 comments Download

Messages

Total messages: 29 (8 generated)
zino
PTAL. I wasn't sure whether it's better to separate the case from original tests or ...
4 years, 11 months ago (2016-01-19 13:00:42 UTC) #2
nhiroki
On 2016/01/19 13:00:42, zino wrote: > PTAL. > > I wasn't sure whether it's better ...
4 years, 11 months ago (2016-01-20 03:56:22 UTC) #3
nhiroki
https://codereview.chromium.org/1604893002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js (right): https://codereview.chromium.org/1604893002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js#newcode9 third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js:9: in_scope_but_not_controlled = e.name.toString(); This might not work because there ...
4 years, 11 months ago (2016-01-20 03:56:34 UTC) #4
zino
On 2016/01/20 03:56:22, nhiroki wrote: > (Generally I'd prefer that each case has its own ...
4 years, 11 months ago (2016-01-20 17:23:06 UTC) #7
zino
I uploaded a new patch set. Could you review again? Thank you! https://codereview.chromium.org/1604893002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js ...
4 years, 11 months ago (2016-01-20 17:24:06 UTC) #8
zino
Hi, Hiroki I fixed the trybot error. Could you review again?
4 years, 11 months ago (2016-01-21 13:20:01 UTC) #9
zino
https://codereview.chromium.org/1604893002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/windowclient-navigate.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/windowclient-navigate.html (right): https://codereview.chromium.org/1604893002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/windowclient-navigate.html#newcode96 third_party/WebKit/LayoutTests/http/tests/serviceworker/windowclient-navigate.html:96: return navigator.serviceWorker.register(SCRIPT_URL, { scope: SCOPE }); On second thoughts, ...
4 years, 11 months ago (2016-01-22 02:29:36 UTC) #10
zino
I've just uploaded a new patch set. Could you review it? Thank you!
4 years, 11 months ago (2016-01-22 12:34:00 UTC) #11
nhiroki
https://codereview.chromium.org/1604893002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigate-on-install-worker.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigate-on-install-worker.js (right): https://codereview.chromium.org/1604893002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigate-on-install-worker.js#newcode2 third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigate-on-install-worker.js:2: importScripts('windowclient-navigate-worker.js'); I think importing non-library file (other worker file) ...
4 years, 11 months ago (2016-01-25 09:50:31 UTC) #12
zino
PTAL. https://codereview.chromium.org/1604893002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigate-on-install-worker.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigate-on-install-worker.js (right): https://codereview.chromium.org/1604893002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigate-on-install-worker.js#newcode2 third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigate-on-install-worker.js:2: importScripts('windowclient-navigate-worker.js'); On 2016/01/25 09:50:31, nhiroki wrote: > I ...
4 years, 10 months ago (2016-01-29 05:36:38 UTC) #13
nhiroki
https://codereview.chromium.org/1604893002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigate-on-install-worker.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigate-on-install-worker.js (right): https://codereview.chromium.org/1604893002/diff/60001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigate-on-install-worker.js#newcode3 third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigate-on-install-worker.js:3: e.waitUntil(get_message().then(client_navigate)); On 2016/01/29 05:36:38, zino wrote: > On 2016/01/25 ...
4 years, 10 months ago (2016-02-01 07:13:56 UTC) #14
zino
https://codereview.chromium.org/1604893002/diff/80001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js (right): https://codereview.chromium.org/1604893002/diff/80001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js#newcode49 third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js:49: get_test_data().then(navigate_test); On 2016/02/01 07:13:55, nhiroki wrote: > Hmmm... there ...
4 years, 10 months ago (2016-02-02 15:58:32 UTC) #15
nhiroki
Sorry for the late reply. https://codereview.chromium.org/1604893002/diff/80001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js (right): https://codereview.chromium.org/1604893002/diff/80001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js#newcode49 third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js:49: get_test_data().then(navigate_test); On 2016/02/02 15:58:31, ...
4 years, 10 months ago (2016-02-08 04:37:15 UTC) #16
zino
On 2016/02/08 04:37:15, nhiroki (slow) wrote: > No. When the worker is in installed/activating state, ...
4 years, 10 months ago (2016-02-11 03:37:53 UTC) #17
nhiroki
On 2016/02/11 03:37:53, zino wrote: > On 2016/02/08 04:37:15, nhiroki (slow) wrote: > > No. ...
4 years, 10 months ago (2016-02-15 05:31:26 UTC) #18
zino
PTAL. Thank you!
4 years, 10 months ago (2016-02-15 10:27:42 UTC) #19
nhiroki
lgtm with nits. Thank you for patiently working on this! https://codereview.chromium.org/1604893002/diff/100001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js (right): https://codereview.chromium.org/1604893002/diff/100001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js#newcode39 ...
4 years, 10 months ago (2016-02-16 07:33:22 UTC) #20
zino
Thank you for your review. :) https://codereview.chromium.org/1604893002/diff/100001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js (right): https://codereview.chromium.org/1604893002/diff/100001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js#newcode39 third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js:39: console.log(self.registration.installing); On 2016/02/16 ...
4 years, 10 months ago (2016-02-16 07:41:12 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1604893002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1604893002/120001
4 years, 10 months ago (2016-02-16 18:41:13 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-02-16 19:40:13 UTC) #26
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:54:09 UTC) #28
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/47a728652bd829f25edff357b5a640f9c78c328f
Cr-Commit-Position: refs/heads/master@{#375629}

Powered by Google App Engine
This is Rietveld 408576698