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

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

Issue 227073006: Added a policy writer for iOS Plists. (Closed) Base URL: https://chromium.googlesource.com/external/grit-i18n.git@master
Patch Set: rebase Created 6 years, 8 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
Index: grit/format/policy_templates/writers/json_writer_unittest.py
===================================================================
--- grit/format/policy_templates/writers/json_writer_unittest.py (revision 158)
+++ grit/format/policy_templates/writers/json_writer_unittest.py (working copy)
@@ -235,13 +235,13 @@
# Tests a policy group with a single policy of type 'dict'.
example = {
'bool': True,
- 'int': 10,
- 'string': 'abc',
- 'list': [1, 2, 3],
'dict': {
'a': 1,
'b': 2,
- }
+ },
+ 'int': 10,
+ 'list': [1, 2, 3],
+ 'string': 'abc',
}
grd = self.PrepareTest(
'{'
@@ -264,8 +264,8 @@
' // Example Dictionary Policy\n' +
HEADER_DELIMETER +
' // Example Dictionary Policy\n\n'
- ' //"DictionaryPolicy": {\'bool\': True, \'dict\': {\'a\': 1, '
- '\'b\': 2}, \'int\': 10, \'list\': [1, 2, 3], \'string\': \'abc\'}\n\n'
+ ' //"DictionaryPolicy": {"bool": true, "dict": {"a": 1, '
+ '"b": 2}, "int": 10, "list": [1, 2, 3], "string": "abc"}\n\n'
'}')
self.CompareOutputs(output, expected_output)
« no previous file with comments | « grit/format/policy_templates/writers/json_writer.py ('k') | grit/format/policy_templates/writers/plist_writer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698