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

Issue 2426723004: ServiceWorker: Modernize postMessage tests for cleanup (Closed)

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

Description

ServiceWorker: Modernize postMessage tests for cleanup These tests still use old helpers/syntax like async_test, and they prevent from changing/adding tests. This CL replaces them with more modern helpers/syntax and simplifies the tests. BUG=n/a Committed: https://crrev.com/8b24bed363581a960b3a756bf09d420a926f8641 Cr-Commit-Position: refs/heads/master@{#426147}

Patch Set 1 #

Total comments: 13

Patch Set 2 : address comments #

Total comments: 2

Patch Set 3 : address review comments #

Messages

Total messages: 21 (11 generated)
nhiroki
Hi, can you review this? I'd like to have this cleanup so that I can ...
4 years, 2 months ago (2016-10-18 06:46:03 UTC) #5
shimazu
Drive-by comment: https://codereview.chromium.org/2426723004/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html (right): https://codereview.chromium.org/2426723004/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html#newcode20 third_party/WebKit/LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html:20: add_completion_callback(() => frame.remove()); It's not necessary to ...
4 years, 2 months ago (2016-10-19 01:18:59 UTC) #9
falken
https://codereview.chromium.org/2426723004/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html (right): https://codereview.chromium.org/2426723004/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html#newcode28 third_party/WebKit/LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html:28: port = e.data.port; Same here, this can just be ...
4 years, 2 months ago (2016-10-19 01:55:24 UTC) #10
nhiroki
Thank you for your comments. PTAL. https://codereview.chromium.org/2426723004/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html (right): https://codereview.chromium.org/2426723004/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html#newcode20 third_party/WebKit/LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html:20: add_completion_callback(() => frame.remove()); ...
4 years, 2 months ago (2016-10-19 04:00:50 UTC) #11
falken
https://codereview.chromium.org/2426723004/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/postmessage.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/postmessage.html (right): https://codereview.chromium.org/2426723004/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/postmessage.html#newcode26 third_party/WebKit/LayoutTests/http/tests/serviceworker/postmessage.html:26: [messageChannel.port2]); On 2016/10/19 04:00:50, nhiroki (slow) wrote: > On ...
4 years, 2 months ago (2016-10-19 04:06:27 UTC) #14
nhiroki
Thanks. Updated. https://codereview.chromium.org/2426723004/diff/20001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-msgport-to-client-worker.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-msgport-to-client-worker.js (right): https://codereview.chromium.org/2426723004/diff/20001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-msgport-to-client-worker.js#newcode7 third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-msgport-to-client-worker.js:7: client.postMessage(messageChannel.port2, [messageChannel.port2]); On 2016/10/19 04:06:27, falken wrote: ...
4 years, 2 months ago (2016-10-19 04:45:06 UTC) #15
falken
lgtm
4 years, 2 months ago (2016-10-19 04:48:39 UTC) #16
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/2426723004/40001
4 years, 2 months ago (2016-10-19 05:14:23 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-19 11:08:01 UTC) #19
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:06:57 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8b24bed363581a960b3a756bf09d420a926f8641
Cr-Commit-Position: refs/heads/master@{#426147}

Powered by Google App Engine
This is Rietveld 408576698