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

Issue 1926813004: Replace assert_promise_rejects with upstream promise_rejects. (Closed)

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

Description

Replace assert_promise_rejects with upstream promise_rejects. Upstream testharness.js has a promise_rejects() which does the same as our assert_promise_rejects method. So replace usage of assert_promise_rejects with the upstream promise_rejects method, and delete testharness-helpers.js as the file would now be empty. Committed: https://crrev.com/3d1cdd336f0646e058d4de65a656125c69a0a896 Cr-Commit-Position: refs/heads/master@{#392635}

Patch Set 1 #

Patch Set 2 : update testharness.js and rebase #

Total comments: 8

Patch Set 3 : remove all testharness-helpers.js references #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -285 lines) Patch
M third_party/WebKit/LayoutTests/PRESUBMIT.py View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice.html View 1 2 4 chunks +9 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice-blacklist.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice-canonicalize-filter.html View 1 2 6 chunks +25 lines, -26 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice-matches-a-filter.html View 1 2 3 chunks +8 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-creation.html View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/common.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/test-helpers.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-add.js View 1 2 7 chunks +36 lines, -28 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-delete.js View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-match.js View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-matchAll.js View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-put.js View 1 2 4 chunks +28 lines, -22 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage.js View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage-keys.js View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage-match.js View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/serviceworker/cache-add-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/window/cache-add.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/window/cache-add-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/window/cache-delete.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/window/cache-match.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/window/cache-matchAll.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/window/cache-put.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/window/cache-storage.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/window/cache-storage-keys.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/window/cache-storage-match.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/window/sandboxed-iframes.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cachestorage/worker/cache-add-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/geofencing/event_triggering.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/geofencing/resources/worker-service-not-available.js View 1 2 1 chunk +9 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/geofencing/service-not-available.html View 1 2 2 chunks +9 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/permissions/test-api-surface.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/push_messaging/push-subscription-stringification.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/push_messaging/subscribe-encryption-public-key.html View 1 2 2 chunks +1 line, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/resources/testharness-helpers.js View 1 2 1 chunk +0 lines, -33 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/bluetooth-on-insecure-origin.html View 1 2 1 chunk +5 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/service-worker-allowed.html View 1 2 4 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/register-link-element.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/registration.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/registration-tests.js View 10 chunks +50 lines, -50 lines 0 comments Download
M third_party/WebKit/LayoutTests/resources/README.txt View 1 2 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/resources/testharness-helpers.js View 1 2 1 chunk +0 lines, -33 lines 0 comments Download
M third_party/WebKit/LayoutTests/storage/quota/storagemanager-estimate.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 25 (11 generated)
Marijn Kruisselbrink
Removing duplications between testharness.js and testharness-helpers.js seems like a good idea. I should possibly wait ...
4 years, 7 months ago (2016-04-27 23:14:24 UTC) #5
Marijn Kruisselbrink
On 2016/04/27 at 23:14:24, Marijn Kruisselbrink wrote: > Removing duplications between testharness.js and testharness-helpers.js seems ...
4 years, 7 months ago (2016-04-28 19:10:46 UTC) #8
jsbell
LayoutTests/imported should only be updated as a result of the process at https://www.chromium.org/blink/importing-the-w3c-tests. It looks ...
4 years, 7 months ago (2016-04-29 17:29:03 UTC) #9
jsbell
Thanks for taking on this cleanup! https://codereview.chromium.org/1926813004/diff/80001/third_party/WebKit/LayoutTests/bluetooth/requestDevice.html File third_party/WebKit/LayoutTests/bluetooth/requestDevice.html (right): https://codereview.chromium.org/1926813004/diff/80001/third_party/WebKit/LayoutTests/bluetooth/requestDevice.html#newcode3 third_party/WebKit/LayoutTests/bluetooth/requestDevice.html:3: <script src="../resources/testharness-helpers.js"></script> This ...
4 years, 7 months ago (2016-04-29 17:39:07 UTC) #10
jsbell
https://codereview.chromium.org/1926813004/diff/80001/third_party/WebKit/LayoutTests/http/tests/resources/testharness-helpers.js File third_party/WebKit/LayoutTests/http/tests/resources/testharness-helpers.js (right): https://codereview.chromium.org/1926813004/diff/80001/third_party/WebKit/LayoutTests/http/tests/resources/testharness-helpers.js#newcode18 third_party/WebKit/LayoutTests/http/tests/resources/testharness-helpers.js:18: function assert_will_be_idl_attribute(object, attribute_name, description) { On 2016/04/29 17:39:07, jsbell ...
4 years, 7 months ago (2016-04-29 19:09:41 UTC) #11
jsbell
Sorry for the spam, but for documentation purposes... https://codereview.chromium.org/1926813004/diff/80001/third_party/WebKit/LayoutTests/http/tests/resources/testharness-helpers.js File third_party/WebKit/LayoutTests/http/tests/resources/testharness-helpers.js (right): https://codereview.chromium.org/1926813004/diff/80001/third_party/WebKit/LayoutTests/http/tests/resources/testharness-helpers.js#newcode33 third_party/WebKit/LayoutTests/http/tests/resources/testharness-helpers.js:33: function ...
4 years, 7 months ago (2016-04-29 21:16:42 UTC) #12
jsbell
FYI https://codereview.chromium.org/1962003002/ is in the CQ and should bring in the needed testharness.js update
4 years, 7 months ago (2016-05-09 16:57:01 UTC) #13
jsbell
On 2016/05/09 16:57:01, jsbell wrote: > FYI https://codereview.chromium.org/1962003002/ is in the CQ and should bring ...
4 years, 7 months ago (2016-05-09 22:29:36 UTC) #14
Marijn Kruisselbrink
On 2016/05/09 at 22:29:36, jsbell wrote: > On 2016/05/09 16:57:01, jsbell wrote: > > FYI ...
4 years, 7 months ago (2016-05-10 00:34:44 UTC) #17
jsbell
lgtm
4 years, 7 months ago (2016-05-10 17:12:49 UTC) #18
jsbell
CL name/description should be updated, though.
4 years, 7 months ago (2016-05-10 17:13:20 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926813004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926813004/120001
4 years, 7 months ago (2016-05-10 17:16:39 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:120001)
4 years, 7 months ago (2016-05-10 17:24:02 UTC) #23
commit-bot: I haz the power
4 years, 7 months ago (2016-05-10 17:25:20 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3d1cdd336f0646e058d4de65a656125c69a0a896
Cr-Commit-Position: refs/heads/master@{#392635}

Powered by Google App Engine
This is Rietveld 408576698