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

Issue 3155033: Add support for if nodes in outputs nodes of grd files (Closed)

Created:
10 years, 4 months ago by gfeher
Modified:
9 years, 7 months ago
Reviewers:
tony, Jói
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr.
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Add support for if nodes in outputs nodes of grd files Make it possible to enclose <output> nodes in <if> conditional, therefore it becomes possible to generate different files from .grd files depending on the platform. BUG=none TEST=IfNodeUnittest.testIffynessWithOutputNodes (in grit) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=56905

Patch Set 1 : - #

Patch Set 2 : add unittest #

Total comments: 5

Patch Set 3 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -7 lines) Patch
M tools/grit/grit/node/empty.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/grit/grit/node/misc.py View 2 chunks +25 lines, -3 lines 0 comments Download
M tools/grit/grit/node/misc_unittest.py View 2 2 chunks +57 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
gfeher
Hi Jói, it's me again. I realized that I need this feature because Mac policy ...
10 years, 4 months ago (2010-08-20 12:00:52 UTC) #1
Jói
Looks groovy, please add unit tests to cover the new logic and the new cases ...
10 years, 4 months ago (2010-08-20 14:51:40 UTC) #2
gfeher
Please check my unit test. By the way, is there a way to add the ...
10 years, 4 months ago (2010-08-20 17:34:12 UTC) #3
Jói
LGTM +tony > By the way, is there a way to add the directory grit/grit/test ...
10 years, 4 months ago (2010-08-20 17:57:50 UTC) #4
Jói
LGTM Sorry, meant to send a couple of nits: http://codereview.chromium.org/3155033/diff/16001/17003 File tools/grit/grit/node/misc_unittest.py (right): http://codereview.chromium.org/3155033/diff/16001/17003#newcode103 tools/grit/grit/node/misc_unittest.py:103: ...
10 years, 4 months ago (2010-08-20 17:58:51 UTC) #5
tony
On 2010/08/20 17:34:12, gfeher wrote: > Please check my unit test. > By the way, ...
10 years, 4 months ago (2010-08-20 18:02:19 UTC) #6
gfeher
Thanks! http://codereview.chromium.org/3155033/diff/16001/17003 File tools/grit/grit/node/misc_unittest.py (right): http://codereview.chromium.org/3155033/diff/16001/17003#newcode103 tools/grit/grit/node/misc_unittest.py:103: assert uncond1_output.name == 'output' May I also change ...
10 years, 4 months ago (2010-08-20 18:05:06 UTC) #7
Jói
> May I also change the asserts in the other unit test in this file? ...
10 years, 4 months ago (2010-08-20 18:08:02 UTC) #8
gfeher
I'll just check what the trybots say and submit... http://codereview.chromium.org/3155033/diff/16001/17003 File tools/grit/grit/node/misc_unittest.py (right): http://codereview.chromium.org/3155033/diff/16001/17003#newcode103 tools/grit/grit/node/misc_unittest.py:103: ...
10 years, 4 months ago (2010-08-20 18:33:45 UTC) #9
Jói
10 years, 4 months ago (2010-08-20 18:35:54 UTC) #10
LGTM

Groovy.

On Fri, Aug 20, 2010 at 2:33 PM,  <gfeher@chromium.org> wrote:
> I'll just check what the trybots say and submit...
>
>
> http://codereview.chromium.org/3155033/diff/16001/17003
> File tools/grit/grit/node/misc_unittest.py (right):
>
> http://codereview.chromium.org/3155033/diff/16001/17003#newcode103
> tools/grit/grit/node/misc_unittest.py:103: assert uncond1_output.name ==
> 'output'
> On 2010/08/20 18:05:06, gfeher wrote:
>>
>> May I also change the asserts in the other unit test in this file?
>
>> On 2010/08/20 17:58:51, Jói wrote:
>> > I'd change all the asserts should to self.assertTrue(); I'm not sure
>
> if the
>>
>> unit
>> > test output will "look right" if it's an assert rather than a
>
> self.assertTrue
>
>
>
> Done.
>
> http://codereview.chromium.org/3155033/diff/16001/17003#newcode113
> tools/grit/grit/node/misc_unittest.py:113: ['uncond1.rc', 'only_fr.adm',
> 'only_fr.plist', 'doc.html', 'uncond2.adm'])
> On 2010/08/20 17:58:51, Jói wrote:
>>
>> +80
>
> Done.
>
> http://codereview.chromium.org/3155033/show
>

Powered by Google App Engine
This is Rietveld 408576698