| Index: tools/grit/grit/format/chrome_messages_json_unittest.py
|
| diff --git a/tools/grit/grit/format/chrome_messages_json_unittest.py b/tools/grit/grit/format/chrome_messages_json_unittest.py
|
| index 0a3ae2e940c6d503578ba183091c88cc951b7fe1..ec188cc508f9156d505fd929df800521d5d151a4 100755
|
| --- a/tools/grit/grit/format/chrome_messages_json_unittest.py
|
| +++ b/tools/grit/grit/format/chrome_messages_json_unittest.py
|
| @@ -108,8 +108,7 @@
|
| """)
|
|
|
| buf = StringIO.StringIO()
|
| - build.RcBuilder.ProcessNode(root, DummyOutput('chrome_messages_json', 'fr'),
|
| - buf)
|
| + build.RcBuilder.ProcessNode(root, DummyOutput('chrome_messages_json', 'fr'), buf)
|
| output = buf.getvalue()
|
| test = u"""
|
| {
|
| @@ -119,31 +118,6 @@
|
| "ID_HELLO_USER": {
|
| "message": "H\\u00e9P\\u00e9ll\\u00f4P\\u00f4 %s"
|
| }
|
| -}
|
| -"""
|
| - self.assertEqual(test.strip(), output.strip())
|
| -
|
| - def testSkipMissingTranslations(self):
|
| - grd = """<?xml version="1.0" encoding="UTF-8"?>
|
| -<grit latest_public_release="2" current_release="3" source_lang_id="en"
|
| - base_dir="%s">
|
| - <outputs>
|
| - </outputs>
|
| - <release seq="3" allow_pseudo="False">
|
| - <messages fallback_to_english="true">
|
| - <message name="ID_HELLO_NO_TRANSLATION">Hello not translated</message>
|
| - </messages>
|
| - </release>
|
| -</grit>"""
|
| - root = grd_reader.Parse(StringIO.StringIO(grd), dir=".")
|
| -
|
| - buf = StringIO.StringIO()
|
| - build.RcBuilder.ProcessNode(root, DummyOutput('chrome_messages_json', 'fr'),
|
| - buf)
|
| - output = buf.getvalue()
|
| - test = u"""
|
| -{
|
| -
|
| }
|
| """
|
| self.assertEqual(test.strip(), output.strip())
|
|
|