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

Issue 1575953004: PolymerTestBase: Load mock-interactions.js instead of importing HTML (Closed)

Created:
4 years, 11 months ago by michaelpg
Modified:
4 years, 11 months ago
Reviewers:
imcheng, *Dan Beam
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PolymerTestBase: Load mock-interactions.js instead of importing HTML iron-test-helpers was updated upstream to import Polymer.[1] This assumes Polymer is not already imported, an assumption that is violated when we test a vulcanized source like Downloads. By loading the script instead of the HTML we avoid re-importing Polymer. This may stop working if mock-interactions.js becomes dependent on other files. [1] https://github.com/PolymerElements/iron-test-helpers/commit/c9e045f520bed82a0447e59d30b9985110c4574f BUG=576828 Committed: https://crrev.com/2d90ebf4ec6783ce4da185f2364fa190d084c1c1 Cr-Commit-Position: refs/heads/master@{#368994}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : MockInteractions #

Total comments: 2

Patch Set 4 : closure type #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -4 lines) Patch
M chrome/test/data/webui/polymer_browser_test_base.js View 1 2 3 5 chunks +26 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
michaelpg
PTAL, this unblocks https://codereview.chromium.org/1561893002/ After speaking with cdata@ this sounds like our best option.
4 years, 11 months ago (2016-01-12 19:18:31 UTC) #4
imcheng
lgtm, thanks for investigating!
4 years, 11 months ago (2016-01-12 19:24:43 UTC) #5
Dan Beam
this code seems fine, by why isn't the import of polymer.html de-duped? because of the ...
4 years, 11 months ago (2016-01-12 20:12:59 UTC) #6
michaelpg
On 2016/01/12 20:12:59, Dan Beam wrote: > this code seems fine, by why isn't the ...
4 years, 11 months ago (2016-01-12 20:14:48 UTC) #7
michaelpg
https://codereview.chromium.org/1575953004/diff/40001/chrome/test/data/webui/polymer_browser_test_base.js File chrome/test/data/webui/polymer_browser_test_base.js (right): https://codereview.chromium.org/1575953004/diff/40001/chrome/test/data/webui/polymer_browser_test_base.js#newcode151 chrome/test/data/webui/polymer_browser_test_base.js:151: * @return {Promise} A promise that is resolved/rejected on ...
4 years, 11 months ago (2016-01-12 20:16:16 UTC) #8
Dan Beam
ah, lgtm who added that damn vulcanized version anyway?!
4 years, 11 months ago (2016-01-12 20:17:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1575953004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1575953004/60001
4 years, 11 months ago (2016-01-12 20:20:06 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-12 21:40:44 UTC) #14
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 21:41:49 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2d90ebf4ec6783ce4da185f2364fa190d084c1c1
Cr-Commit-Position: refs/heads/master@{#368994}

Powered by Google App Engine
This is Rietveld 408576698