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

Unified Diff: tools/grit/grit/format/policy_templates/writers/reg_writer_unittest.py

Issue 6360002: Remove 'annotations' dictionary in policy_definitions.json. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better comments Created 9 years, 11 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: tools/grit/grit/format/policy_templates/writers/reg_writer_unittest.py
diff --git a/tools/grit/grit/format/policy_templates/writers/reg_writer_unittest.py b/tools/grit/grit/format/policy_templates/writers/reg_writer_unittest.py
index 62d1ac7e3e1db18c3de54f08eaadeab5d05c75b2..58e82268c910c414531fb46202f12a0db44ccbdb 100644
--- a/tools/grit/grit/format/policy_templates/writers/reg_writer_unittest.py
+++ b/tools/grit/grit/format/policy_templates/writers/reg_writer_unittest.py
@@ -44,7 +44,7 @@ class RegWriterUnittest(writer_unittest_common.WriterUnittestCommon):
' "placeholders": [],'
' "messages": {}'
'}')
- output = self.GetOutput(grd, 'fr', {'_chromium': '1',}, 'reg', 'en')
+ output = self.GetOutput(grd, 'fr', {'_chromium': '1', }, 'reg', 'en')
expected_output = 'Windows Registry Editor Version 5.00'
self.CompareOutputs(output, expected_output)
@@ -59,9 +59,7 @@ class RegWriterUnittest(writer_unittest_common.WriterUnittestCommon):
' "caption": "",'
' "desc": "",'
' "supported_on": ["chrome.win:8-"],'
- ' "annotations": {'
- ' "example_value": True'
- ' }'
+ ' "example_value": True'
' },'
' ],'
' "placeholders": [],'
@@ -86,9 +84,7 @@ class RegWriterUnittest(writer_unittest_common.WriterUnittestCommon):
' "caption": "",'
' "desc": "",'
' "supported_on": ["chrome.win:8-"],'
- ' "annotations": {'
- ' "example_value": "hello, world! \\\" \\\\"'
- ' }'
+ ' "example_value": "hello, world! \\\" \\\\"'
' },'
' ],'
' "placeholders": [],'
@@ -113,9 +109,7 @@ class RegWriterUnittest(writer_unittest_common.WriterUnittestCommon):
' "caption": "",'
' "desc": "",'
' "supported_on": ["chrome.win:8-"],'
- ' "annotations": {'
- ' "example_value": 26'
- ' }'
+ ' "example_value": 26'
' },'
' ],'
' "placeholders": [],'
@@ -144,9 +138,7 @@ class RegWriterUnittest(writer_unittest_common.WriterUnittestCommon):
' {"name": "ProxyServerAutoDetect", "value": 1, "caption": ""},'
' ],'
' "supported_on": ["chrome.win:8-"],'
- ' "annotations": {'
- ' "example_value": 1'
- ' }'
+ ' "example_value": 1'
' },'
' ],'
' "placeholders": [],'
@@ -177,9 +169,7 @@ class RegWriterUnittest(writer_unittest_common.WriterUnittestCommon):
' "caption": ""},'
' ],'
' "supported_on": ["chrome.win:8-"],'
- ' "annotations": {'
- ' "example_value": "two"'
- ' }'
+ ' "example_value": "two"'
' },'
' ],'
' "placeholders": [],'
@@ -204,9 +194,7 @@ class RegWriterUnittest(writer_unittest_common.WriterUnittestCommon):
' "caption": "",'
' "desc": "",'
' "supported_on": ["chrome.linux:8-"],'
- ' "annotations": {'
- ' "example_value": ["foo", "bar"]'
- ' }'
+ ' "example_value": ["foo", "bar"]'
' },'
' ],'
' "placeholders": [],'
@@ -232,9 +220,7 @@ class RegWriterUnittest(writer_unittest_common.WriterUnittestCommon):
' "caption": "",'
' "desc": "",'
' "supported_on": ["chrome.mac:8-"],'
- ' "annotations": {'
- ' "example_value": ["a"]'
- ' }'
+ ' "example_value": ["a"]'
' },'
' ],'
' "placeholders": [],'
@@ -261,18 +247,14 @@ class RegWriterUnittest(writer_unittest_common.WriterUnittestCommon):
' "caption": "",'
' "desc": "",'
' "supported_on": ["chrome.win:8-"],'
- ' "annotations": {'
- ' "example_value": ["a", "b"]'
- ' }'
+ ' "example_value": ["a", "b"]'
' },{'
' "name": "Policy2",'
' "type": "string",'
' "caption": "",'
' "desc": "",'
' "supported_on": ["chrome.win:8-"],'
- ' "annotations": {'
- ' "example_value": "c"'
- ' }'
+ ' "example_value": "c"'
' }],'
' },'
' ],'
« no previous file with comments | « tools/grit/grit/format/policy_templates/writers/reg_writer.py ('k') | tools/grit/grit/gather/policy_json.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698