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

Unified Diff: grit/format/js_map_format_unittest.py

Issue 11152002: Add support for messages.json format used to localize Chrome extensions. (Closed) Base URL: http://git.chromium.org/external/grit-i18n.git@master
Patch Set: Created 8 years, 2 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/js_map_format.py ('k') | grit/node/empty.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/format/js_map_format_unittest.py
diff --git a/grit/format/js_map_format_unittest.py b/grit/format/js_map_format_unittest.py
index 28c70bda83f732b02f39351efed6f8cf84e37e34..b4f7a22dc5af85d68dcbf8d9ff917efa733443b8 100644
--- a/grit/format/js_map_format_unittest.py
+++ b/grit/format/js_map_format_unittest.py
@@ -39,6 +39,9 @@ class JsMapFormatUnittest(unittest.TestCase):
<message name="IDS_DOUBLE_QUOTES">
A "double quoted" message.
</message>
+ <message name="IDS_BACKSLASH">
+ \\
+ </message>
</messages>
"""
root = grd_reader.Parse(StringIO.StringIO(grd_text.encode('utf-8')),
@@ -54,6 +57,7 @@ localizedStrings["element\u2019s \u201c%s\u201d attribute"] = "element\u2019s \u
localizedStrings["%d error, %d warning"] = "%1$d error, %2$d warning";
localizedStrings[" (%d)"] = " (%d)";
localizedStrings["A \\\"double quoted\\\" message."] = "A \\\"double quoted\\\" message.";
+localizedStrings["\\\\"] = "\\\\";
"""
self.failUnless(output.strip() == test.strip())
« no previous file with comments | « grit/format/js_map_format.py ('k') | grit/node/empty.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698