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

Issue 1210883002: Service Worker: Fix getRegistrations.html layout test. (Closed)

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

Description

Service Worker: Fix getRegistrations.html layout test. Serialize the registration and unregistration sequence between top-level window and its iframe so that the registration object in the iframe cannot be derefenced before created. Also this CL improves the performace of the registration purging operations at the beginning of the test by using Promise.all(unreg_promises) instead of serializing the promises. It should be noted that registration.unregister() promises resolve before the corresponding registrations are actually deleted from the storage as per spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#unregister-algorithm. Thus this test made the registration purging step be waiting until the corresponding registrations are actually deleted from the storage. BUG=502125 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197899

Patch Set 1 #

Patch Set 2 : Remove lines from TestExpectations and SlowTests. #

Patch Set 3 : Make sure purging registrations complete before other tests. #

Total comments: 2

Patch Set 4 : Add a comment to explain the behavior of registration.unregister() in the test. #

Total comments: 2

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -48 lines) Patch
M LayoutTests/SlowTests View 1 chunk +0 lines, -1 line 0 comments Download
LayoutTests/TestExpectations View 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/getregistrations.html View 3 chunks +44 lines, -37 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/frame-for-getregistrations.html View 1 chunk +19 lines, -8 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
jungkees
getRegistrations.html had a message sync issue between the top-level window and the iframe. Tried to ...
5 years, 6 months ago (2015-06-25 13:39:13 UTC) #2
falken
lgtm. Can you also remove http/tests/serviceworker/getregistrations.html from TestExpectations and SlowTests?
5 years, 6 months ago (2015-06-26 00:56:47 UTC) #3
jungkees
I'm not really familiar with "TestExpectations and SlowTests". Could you give me any pointers?
5 years, 6 months ago (2015-06-26 01:10:58 UTC) #4
falken
On 2015/06/26 01:10:58, jungkees wrote: > I'm not really familiar with "TestExpectations and SlowTests". Could ...
5 years, 6 months ago (2015-06-26 01:13:56 UTC) #5
jungkees
Addressed. Thanks for the pointers!
5 years, 6 months ago (2015-06-26 01:28:41 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1210883002/20001
5 years, 6 months ago (2015-06-26 01:29:02 UTC) #9
jungkees
falken@ I just made a snapshot having addressed our discussion about guaranteeing purging registrations step. ...
5 years, 6 months ago (2015-06-26 06:25:25 UTC) #11
falken
looks good but TestExpectations seems not uploaded correctly https://codereview.chromium.org/1210883002/diff/40001/LayoutTests/http/tests/serviceworker/getregistrations.html File LayoutTests/http/tests/serviceworker/getregistrations.html (right): https://codereview.chromium.org/1210883002/diff/40001/LayoutTests/http/tests/serviceworker/getregistrations.html#newcode21 LayoutTests/http/tests/serviceworker/getregistrations.html:21: timer ...
5 years, 6 months ago (2015-06-26 07:10:14 UTC) #12
jungkees
Addressed the comment. I'll proceed with the commit as we discussed. https://codereview.chromium.org/1210883002/diff/40001/LayoutTests/http/tests/serviceworker/getregistrations.html File LayoutTests/http/tests/serviceworker/getregistrations.html (right): ...
5 years, 6 months ago (2015-06-26 07:42:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1210883002/60001
5 years, 6 months ago (2015-06-26 07:44:02 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/60893)
5 years, 6 months ago (2015-06-26 07:46:51 UTC) #18
falken
looks like you need to rebase? also comment on the comment https://codereview.chromium.org/1210883002/diff/60001/LayoutTests/http/tests/serviceworker/getregistrations.html File LayoutTests/http/tests/serviceworker/getregistrations.html (right): ...
5 years, 6 months ago (2015-06-26 07:50:31 UTC) #19
jungkees
Addressed the comment and rebased. Thanks.
5 years, 6 months ago (2015-06-26 08:11:15 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1210883002/120001
5 years, 6 months ago (2015-06-26 08:11:50 UTC) #25
commit-bot: I haz the power
5 years, 6 months ago (2015-06-26 09:22:22 UTC) #26
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197899

Powered by Google App Engine
This is Rietveld 408576698