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

Issue 647493002: Move promise_test and assert_promise_rejects out of worker-test-harness. (Closed)

Created:
6 years, 2 months ago by Marijn Kruisselbrink
Modified:
6 years, 2 months ago
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, kinuko+serviceworker, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@geofencing_serviceworker
Project:
blink
Visibility:
Public.

Description

Move promise_test and assert_promise_rejects out of worker-test-harness. These methods have nothing to do with service worker based tests, and are just as useful in normal testharness based tests, so move them to a separate file. Additionally rename worker-test-harness.js to worker-testharness.js for consistency. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183557

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix typo #

Total comments: 7

Patch Set 3 : address comments #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -163 lines) Patch
M LayoutTests/http/tests/geofencing/resources/worker.js View 1 2 1 chunk +2 lines, -1 line 0 comments Download
A LayoutTests/http/tests/resources/testharness-helpers.js View 1 2 1 chunk +44 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/close-worker.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/chromium/resources/xhr-is-not-exposed-to-service-workers.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/cache-storage-keys-worker.js View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/cache-storage-worker.js View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/fail-on-fetch-worker.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/fetch-cache-override-worker.js View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/fetch-worker.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/headers-worker.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/request-worker.js View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/response-content-worker.js View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/response-worker.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/worker-test-harness.js View 1 2 1 chunk +0 lines, -112 lines 0 comments Download
A + LayoutTests/http/tests/serviceworker/resources/worker-testharness.js View 1 2 1 chunk +0 lines, -38 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
Marijn Kruisselbrink
As suggested in https://codereview.chromium.org/623813002, move the promise testharness helpers to a separate file. These methods ...
6 years, 2 months ago (2014-10-09 18:37:36 UTC) #2
jsbell
+dpranke who cares about such things https://codereview.chromium.org/647493002/diff/1/LayoutTests/http/tests/resources/testharness-helpers.js File LayoutTests/http/tests/resources/testharness-helpers.js (right): https://codereview.chromium.org/647493002/diff/1/LayoutTests/http/tests/resources/testharness-helpers.js#newcode3 LayoutTests/http/tests/resources/testharness-helpers.js:3: * allow them ...
6 years, 2 months ago (2014-10-09 18:46:06 UTC) #4
jsbell
And (nit/suggestion aside) I'm fine with this, so lgtm but asanka and dpranke should weigh ...
6 years, 2 months ago (2014-10-10 17:18:08 UTC) #5
asanka
lgtm w/ suggestion + nits https://codereview.chromium.org/647493002/diff/100001/LayoutTests/http/tests/resources/testharness-helpers.js File LayoutTests/http/tests/resources/testharness-helpers.js (right): https://codereview.chromium.org/647493002/diff/100001/LayoutTests/http/tests/resources/testharness-helpers.js#newcode4 LayoutTests/http/tests/resources/testharness-helpers.js:4: * upstreamed. Could you ...
6 years, 2 months ago (2014-10-10 19:39:11 UTC) #6
Marijn Kruisselbrink
https://codereview.chromium.org/647493002/diff/100001/LayoutTests/http/tests/resources/testharness-helpers.js File LayoutTests/http/tests/resources/testharness-helpers.js (right): https://codereview.chromium.org/647493002/diff/100001/LayoutTests/http/tests/resources/testharness-helpers.js#newcode4 LayoutTests/http/tests/resources/testharness-helpers.js:4: * upstreamed. On 2014/10/10 19:39:11, asanka wrote: > Could ...
6 years, 2 months ago (2014-10-10 20:32:56 UTC) #7
Dirk Pranke
lgtm
6 years, 2 months ago (2014-10-10 20:46:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647493002/320001
6 years, 2 months ago (2014-10-10 20:48:21 UTC) #11
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 21:45:34 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 (id:320001) as 183557

Powered by Google App Engine
This is Rietveld 408576698