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

Issue 350563002: Port first garden-o-matic component over to polymer (Closed)

Created:
6 years, 6 months ago by ojan
Modified:
6 years, 6 months ago
CC:
blink-reviews, eseidel, Julie Parent, michaelpg, szager1, team-ojan_chromium.org
Project:
blink
Visibility:
Public.

Description

Port first garden-o-matic component over to polymer 1. Add polymer bower json and update app.yaml appropriately. 2. Add 'unsafe-inline' to script-src so that imports work. 3. Add a load warning if you try to load the page without having ever synced polymer. 4. Convert ui.results.Comparison over to <results-comparison> and cleanup all code in ui.results.ResultsGrid. Put results-comparison in it's own file. It makes sense to put each custom element definition in it's own file and to test it independently. Add a top-level ui directory for all the UI related components. When we're done, we should be able to delete a bunch of the JS files in the scripts directory and all the CSS files in the styles directory. NOTRY=true Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176805

Patch Set 1 #

Total comments: 1

Patch Set 2 : remove some copy-paste #

Patch Set 3 : remove CSP #

Total comments: 26

Patch Set 4 : use mdv #

Total comments: 1

Patch Set 5 : add console.error #

Total comments: 11

Patch Set 6 : address review comments #

Patch Set 7 : remove stray </html> #

Patch Set 8 : add to alert string #

Patch Set 9 : add files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -209 lines) Patch
A Tools/GardeningServer/.gitignore View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A Tools/GardeningServer/README View 1 chunk +20 lines, -0 lines 0 comments Download
M Tools/GardeningServer/app.yaml View 1 chunk +8 lines, -0 lines 0 comments Download
A Tools/GardeningServer/bower.json View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M Tools/GardeningServer/garden-o-matic.html View 1 2 3 4 chunks +12 lines, -21 lines 0 comments Download
A Tools/GardeningServer/polymer-load-warning.html View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M Tools/GardeningServer/run-unittests.html View 1 2 3 4 5 6 3 chunks +9 lines, -3 lines 0 comments Download
M Tools/GardeningServer/scripts/ui/results.js View 1 2 3 4 5 2 chunks +24 lines, -104 lines 0 comments Download
M Tools/GardeningServer/scripts/ui_unittests.js View 1 2 3 4 5 1 chunk +19 lines, -43 lines 0 comments Download
M Tools/GardeningServer/styles/main.css View 1 chunk +0 lines, -11 lines 0 comments Download
M Tools/GardeningServer/styles/results.css View 2 chunks +0 lines, -27 lines 0 comments Download
A Tools/GardeningServer/ui/ct-results-comparison.html View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
A Tools/GardeningServer/ui/ct-results-comparison-tests.html View 1 2 3 4 5 1 chunk +43 lines, -0 lines 0 comments Download
A Tools/GardeningServer/ui/ct-test-output.html View 1 2 3 4 5 6 7 8 1 chunk +46 lines, -0 lines 0 comments Download
A Tools/GardeningServer/ui/ct-test-output-tests.html View 1 2 3 4 5 6 7 8 1 chunk +101 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
ojan
https://codereview.chromium.org/350563002/diff/1/Tools/GardeningServer/garden-o-matic.html File Tools/GardeningServer/garden-o-matic.html (right): https://codereview.chromium.org/350563002/diff/1/Tools/GardeningServer/garden-o-matic.html#newcode32 Tools/GardeningServer/garden-o-matic.html:32: script-src 'self' file: https://ajax.googleapis.com 'unsafe-inline'; This is the only ...
6 years, 6 months ago (2014-06-21 21:34:42 UTC) #1
abarth-chromium
> Add 'unsafe-inline' to script-src so that imports work. Why is this necessary to make ...
6 years, 6 months ago (2014-06-22 00:17:34 UTC) #2
ojan
On 2014/06/22 at 00:17:34, abarth wrote: > > Add 'unsafe-inline' to script-src so that imports ...
6 years, 6 months ago (2014-06-22 00:27:49 UTC) #3
abarth-chromium
On 2014/06/22 at 00:27:49, ojan wrote: > I think that makes sense, but I don't ...
6 years, 6 months ago (2014-06-22 01:11:04 UTC) #4
ojan
On 2014/06/22 at 01:11:04, abarth wrote: > On 2014/06/22 at 00:27:49, ojan wrote: > > ...
6 years, 6 months ago (2014-06-22 01:25:50 UTC) #5
ojan
On 2014/06/22 at 01:25:50, OOO-only-code-yellow-reviews wrote: > On 2014/06/22 at 01:11:04, abarth wrote: > > ...
6 years, 6 months ago (2014-06-22 01:27:17 UTC) #6
abarth-chromium
On 2014/06/22 at 01:27:17, ojan wrote: > It is the case that we don't care ...
6 years, 6 months ago (2014-06-22 03:23:29 UTC) #7
ojan
On 2014/06/22 at 03:23:29, abarth wrote: > On 2014/06/22 at 01:27:17, ojan wrote: > > ...
6 years, 6 months ago (2014-06-22 03:46:30 UTC) #8
esprehn
https://codereview.chromium.org/350563002/diff/40001/Tools/GardeningServer/garden-o-matic.html File Tools/GardeningServer/garden-o-matic.html (right): https://codereview.chromium.org/350563002/diff/40001/Tools/GardeningServer/garden-o-matic.html#newcode43 Tools/GardeningServer/garden-o-matic.html:43: <link rel='import' href="bower_components/polymer/polymer.html"> Maybe be consistent and use double ...
6 years, 6 months ago (2014-06-22 05:15:20 UTC) #9
ojan
https://codereview.chromium.org/350563002/diff/40001/Tools/GardeningServer/ui/results-comparison-tests.html File Tools/GardeningServer/ui/results-comparison-tests.html (right): https://codereview.chromium.org/350563002/diff/40001/Tools/GardeningServer/ui/results-comparison-tests.html#newcode12 Tools/GardeningServer/ui/results-comparison-tests.html:12: module("results-comparison"); This is just the name of the test ...
6 years, 6 months ago (2014-06-22 06:33:19 UTC) #10
abarth-chromium
https://codereview.chromium.org/350563002/diff/40001/.gitignore File .gitignore (right): https://codereview.chromium.org/350563002/diff/40001/.gitignore#newcode5 .gitignore:5: Tools/GardeningServer/bower_components This should go in Tools/GardeningServer/.gitignore https://codereview.chromium.org/350563002/diff/40001/Tools/GardeningServer/ui/results-comparison.html File Tools/GardeningServer/ui/results-comparison.html ...
6 years, 6 months ago (2014-06-22 14:43:51 UTC) #11
ojan
https://codereview.chromium.org/350563002/diff/40001/.gitignore File .gitignore (right): https://codereview.chromium.org/350563002/diff/40001/.gitignore#newcode5 .gitignore:5: Tools/GardeningServer/bower_components Somehow I forgot that you could do nested ...
6 years, 6 months ago (2014-06-22 22:49:22 UTC) #12
esprehn
You put GOM into quirks mode, don't do that :( https://codereview.chromium.org/350563002/diff/80001/Tools/GardeningServer/garden-o-matic.html File Tools/GardeningServer/garden-o-matic.html (right): https://codereview.chromium.org/350563002/diff/80001/Tools/GardeningServer/garden-o-matic.html#newcode29 ...
6 years, 6 months ago (2014-06-23 05:25:05 UTC) #13
ojan
https://codereview.chromium.org/350563002/diff/80001/Tools/GardeningServer/garden-o-matic.html File Tools/GardeningServer/garden-o-matic.html (right): https://codereview.chromium.org/350563002/diff/80001/Tools/GardeningServer/garden-o-matic.html#newcode29 Tools/GardeningServer/garden-o-matic.html:29: <!DOCTYPE html> On 2014/06/23 05:25:04, esprehn wrote: > You ...
6 years, 6 months ago (2014-06-23 05:43:33 UTC) #14
esprehn
On 2014/06/23 at 05:43:33, ojan wrote: > https://codereview.chromium.org/350563002/diff/80001/Tools/GardeningServer/garden-o-matic.html > File Tools/GardeningServer/garden-o-matic.html (right): > > https://codereview.chromium.org/350563002/diff/80001/Tools/GardeningServer/garden-o-matic.html#newcode29 ...
6 years, 6 months ago (2014-06-23 06:06:00 UTC) #15
michaelpg
https://codereview.chromium.org/350563002/diff/80001/Tools/GardeningServer/polymer-load-warning.html File Tools/GardeningServer/polymer-load-warning.html (right): https://codereview.chromium.org/350563002/diff/80001/Tools/GardeningServer/polymer-load-warning.html#newcode9 Tools/GardeningServer/polymer-load-warning.html:9: alert('Polymer did not load correctly. Did you run "bower ...
6 years, 6 months ago (2014-06-24 01:15:39 UTC) #16
ojan
All comments should be addressed. https://codereview.chromium.org/350563002/diff/80001/Tools/GardeningServer/polymer-load-warning.html File Tools/GardeningServer/polymer-load-warning.html (right): https://codereview.chromium.org/350563002/diff/80001/Tools/GardeningServer/polymer-load-warning.html#newcode9 Tools/GardeningServer/polymer-load-warning.html:9: alert('Polymer did not load ...
6 years, 6 months ago (2014-06-24 02:41:17 UTC) #17
esprehn
lgtm
6 years, 6 months ago (2014-06-24 03:01:55 UTC) #18
ojan
The CQ bit was checked by ojan@chromium.org
6 years, 6 months ago (2014-06-24 03:02:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ojan@chromium.org/350563002/160001
6 years, 6 months ago (2014-06-24 03:03:59 UTC) #20
commit-bot: I haz the power
6 years, 6 months ago (2014-06-24 03:04:44 UTC) #21
Message was sent while issue was closed.
Change committed as 176805

Powered by Google App Engine
This is Rietveld 408576698