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

Unified Diff: grit/node/io_unittest.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/node/base.py ('k') | grit/node/message.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/node/io_unittest.py
diff --git a/grit/node/io_unittest.py b/grit/node/io_unittest.py
index 4048e960053ff912478e297c24c1382e40cc4241..6a7069b140d8a7bbeec78b68706410e9bb37d6ff 100644
--- a/grit/node/io_unittest.py
+++ b/grit/node/io_unittest.py
@@ -62,6 +62,7 @@ class FileNodeUnittest(unittest.TestCase):
</grit>'''
grd = grd_reader.Parse(StringIO.StringIO(xml),
util.PathFromRoot('grit/testdata'))
+ grd.SetOutputContext('en', {})
grd.RunGatherers(recursive=True)
self.VerifyCliquesContainEnglishAndFrenchAndNothingElse(grd.GetCliques())
@@ -108,6 +109,7 @@ class FileNodeUnittest(unittest.TestCase):
</grit>'''
grd = grd_reader.Parse(StringIO.StringIO(xml),
util.PathFromRoot('grit/testdata'))
+ grd.SetOutputContext('en', {})
grd.RunGatherers(recursive=True)
self.VerifyCliquesContainEnglishAndFrenchAndNothingElse(grd.GetCliques())
@@ -132,6 +134,7 @@ class FileNodeUnittest(unittest.TestCase):
</grit>'''
grd = grd_reader.Parse(StringIO.StringIO(xml),
util.PathFromRoot('grit/test/data'))
+ grd.SetOutputContext('en', {})
grd.RunGatherers(recursive=True)
outputs = grd.GetChildrenOfType(io.OutputNode)
self.failUnless(outputs[0].SatisfiesOutputCondition())
« no previous file with comments | « grit/node/base.py ('k') | grit/node/message.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698