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

Unified Diff: grit/format/policy_templates/writers/writer_unittest_common.py

Issue 9965022: Allow substitution of messages as variables in other messages. (Closed) Base URL: https://grit-i18n.googlecode.com/svn/trunk
Patch Set: Fix unit tests for policy writers. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « grit/format/policy_templates/template_formatter.py ('k') | grit/format/rc.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/format/policy_templates/writers/writer_unittest_common.py
diff --git a/grit/format/policy_templates/writers/writer_unittest_common.py b/grit/format/policy_templates/writers/writer_unittest_common.py
index 64457b7b2be04f8a03b2dd1004100b172b4e8225..50818ce9cb3a4f9c5377efc0fca823b08432bf01 100644
--- a/grit/format/policy_templates/writers/writer_unittest_common.py
+++ b/grit/format/policy_templates/writers/writer_unittest_common.py
@@ -61,6 +61,7 @@ class WriterUnittestCommon(unittest.TestCase):
grd_string_io = StringIO.StringIO(grd_text)
# Parse the grit tree and load the policies' JSON with a gatherer.
grd = grd_reader.Parse(grd_string_io, dir=tmp_dir_name)
+ grd.SetOutputContext('en', {})
grd.RunGatherers(recursive=True)
# Remove the policies' JSON.
os.unlink(json_file_path)
« no previous file with comments | « grit/format/policy_templates/template_formatter.py ('k') | grit/format/rc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698