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

Unified Diff: grit/tool/transl2tc_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/tool/transl2tc.py ('k') | grit/util.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/tool/transl2tc_unittest.py
diff --git a/grit/tool/transl2tc_unittest.py b/grit/tool/transl2tc_unittest.py
index 5a96a3723dbad444c75e84e75be17c2f02c5ef04..4b462cebafe1fd0ea8b03ac9e123fdcbd11b6e6e 100644
--- a/grit/tool/transl2tc_unittest.py
+++ b/grit/tool/transl2tc_unittest.py
@@ -84,6 +84,7 @@ how are you?
</structures>
</release>
</grit>'''), path)
+ current_grd.SetOutputContext('en', {})
current_grd.RunGatherers(recursive=True)
source_rc_path = util.PathFromRoot('grit/testdata/source.rc')
@@ -115,7 +116,7 @@ how are you?
self.failUnless(('Howdie' in values or 'Hallo sagt man' in values) and not
('Howdie' in values and 'Hallo sagt man' in values))
- self.failUnless('XX01XX&SkraXX02XX&HaettaXX03XXThetta er "Klonk" sem eg fylaXX04XXgonkurinnXX05XXKlonk && er "gott"XX06XX&HjalpXX07XX&Um...XX08XX' in values)
+ self.failUnless('XX01XX&SkraXX02XX&HaettaXX03XXThetta er "Klonk" sem eg fylaXX04XXgonkurinnXX05XXKlonk && er [good]XX06XX&HjalpXX07XX&Um...XX08XX' in values)
self.failUnless('I lagi' in values)
« no previous file with comments | « grit/tool/transl2tc.py ('k') | grit/util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698