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

Issue 1212703002: grit: Ignore empty file paths when generating input file list (Closed)

Created:
5 years, 6 months ago by tdanderson
Modified:
5 years, 4 months ago
Reviewers:
flackr, newt (away)
CC:
grit-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/grit-i18n.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

grit: Ignore empty file paths when generating input file list It is possible for the input path of <structure> nodes to be empty, so ignore such descendant nodes when generating the list of input files at the <grit> root node. BUG=503635 TEST=GritNodeUnittest.testGetInputFilesChromeScaledImage

Patch Set 1 #

Patch Set 2 : test added #

Total comments: 1

Patch Set 3 : test nit #

Patch Set 4 : replace backslash in Win paths #

Total comments: 4

Patch Set 5 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -1 line) Patch
M grit/node/misc.py View 1 chunk +3 lines, -1 line 0 comments Download
M grit/node/misc_unittest.py View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
A grit/testdata/default_100_percent/a.png View 1 Binary file 0 comments Download
A grit/testdata/default_100_percent/b.png View 1 Binary file 0 comments Download
A grit/testdata/special_100_percent/a.png View 1 Binary file 0 comments Download

Messages

Total messages: 20 (2 generated)
tdanderson
Hi Rob, can you please take a look? It seems I forgot this in the ...
5 years, 6 months ago (2015-06-26 00:14:22 UTC) #2
flackr
Can you add a test that GetInputFiles generates the correct list given a ChromeScaledImage with ...
5 years, 6 months ago (2015-06-26 00:18:32 UTC) #3
tdanderson
Rob, can you please take another look?
5 years, 6 months ago (2015-06-26 19:30:36 UTC) #4
flackr
lgtm with test nit. https://codereview.chromium.org/1212703002/diff/20001/grit/node/misc_unittest.py File grit/node/misc_unittest.py (right): https://codereview.chromium.org/1212703002/diff/20001/grit/node/misc_unittest.py#newcode79 grit/node/misc_unittest.py:79: actual.append(split[-2] + '/' + split[-1]) ...
5 years, 6 months ago (2015-06-26 19:45:21 UTC) #5
tdanderson
Rob, thanks for the suggestion, that is much nicer. Can you PTAL?
5 years, 6 months ago (2015-06-26 20:33:21 UTC) #6
tdanderson
On 2015/06/26 20:33:21, tdanderson wrote: > Rob, thanks for the suggestion, that is much nicer. ...
5 years, 6 months ago (2015-06-26 20:35:00 UTC) #7
flackr
On 2015/06/26 20:35:00, tdanderson wrote: > On 2015/06/26 20:33:21, tdanderson wrote: > > Rob, thanks ...
5 years, 6 months ago (2015-06-26 21:18:54 UTC) #8
tdanderson
Good catch, thanks! I tested on Windows and that would have indeed caused a problem. ...
5 years, 6 months ago (2015-06-26 22:34:36 UTC) #9
flackr
https://codereview.chromium.org/1212703002/diff/60001/grit/node/misc_unittest.py File grit/node/misc_unittest.py (right): https://codereview.chromium.org/1212703002/diff/60001/grit/node/misc_unittest.py#newcode75 grit/node/misc_unittest.py:75: actual = [os.path.relpath(path, 'testdata') for path in grd.GetInputFiles()] This ...
5 years, 6 months ago (2015-06-26 23:10:32 UTC) #10
tdanderson
Rob, can you PTAL? https://codereview.chromium.org/1212703002/diff/60001/grit/node/misc_unittest.py File grit/node/misc_unittest.py (right): https://codereview.chromium.org/1212703002/diff/60001/grit/node/misc_unittest.py#newcode75 grit/node/misc_unittest.py:75: actual = [os.path.relpath(path, 'testdata') for ...
5 years, 5 months ago (2015-06-29 15:34:13 UTC) #11
flackr
LGTM, committed revision 191.
5 years, 5 months ago (2015-06-29 15:42:27 UTC) #12
newt (away)
This change broke testGetInputFilesChromeScaledImage() in grit/node/misc_unittest.py. Could you fix that? Thanks!
5 years, 4 months ago (2015-08-07 23:40:25 UTC) #14
Nico
On 2015/08/07 23:40:25, newt wrote: > This change broke testGetInputFilesChromeScaledImage() in > grit/node/misc_unittest.py. Could you ...
5 years, 4 months ago (2015-08-09 21:48:41 UTC) #15
tdanderson
On 2015/08/09 21:48:41, Nico (hiding) wrote: > On 2015/08/07 23:40:25, newt wrote: > > This ...
5 years, 4 months ago (2015-08-10 14:38:30 UTC) #16
tdanderson
On 2015/08/10 14:38:30, tdanderson wrote: > On 2015/08/09 21:48:41, Nico (hiding) wrote: > > On ...
5 years, 4 months ago (2015-08-10 14:59:39 UTC) #17
flackr
On 2015/08/10 14:59:39, tdanderson wrote: > On 2015/08/10 14:38:30, tdanderson wrote: > > On 2015/08/09 ...
5 years, 4 months ago (2015-08-10 15:30:47 UTC) #18
newt (away)
Thanks for fixing!
5 years, 4 months ago (2015-08-10 16:35:59 UTC) #19
tdanderson
5 years, 4 months ago (2015-08-10 17:17:19 UTC) #20
Message was sent while issue was closed.
On 2015/08/10 16:35:59, newt wrote:
> Thanks for fixing!

Thanks for fixing this, Rob.
grit roll: https://codereview.chromium.org/1285603003/

Powered by Google App Engine
This is Rietveld 408576698