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

Unified Diff: tools/json_schema_compiler/idl_schema_test.py

Issue 2649373002: Re-land: Update json_schema_compiler to handle the Automation extension API (Closed)
Patch Set: Fix presubmit Created 3 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
« no previous file with comments | « tools/json_schema_compiler/idl_schema.py ('k') | tools/json_schema_compiler/js_externs_generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/idl_schema_test.py
diff --git a/tools/json_schema_compiler/idl_schema_test.py b/tools/json_schema_compiler/idl_schema_test.py
index 3e0d3cc482a0cda344a4d3f66bd23cccfa0dcaef..f9a4d8702a7ab12a6113c1db6b880d5650a70e7c 100755
--- a/tools/json_schema_compiler/idl_schema_test.py
+++ b/tools/json_schema_compiler/idl_schema_test.py
@@ -70,7 +70,8 @@ class IdlSchemaTest(unittest.TestCase):
def testLegalValues(self):
self.assertEquals({
'x': {'name': 'x', 'type': 'integer', 'enum': [1,2],
- 'description': 'This comment tests "double-quotes".'},
+ 'description': 'This comment tests "double-quotes".',
+ 'jsexterns': None},
'y': {'name': 'y', 'type': 'string'},
'z': {'name': 'z', 'type': 'string'},
'a': {'name': 'a', 'type': 'string'},
@@ -402,21 +403,25 @@ class IdlSchemaTest(unittest.TestCase):
self.assertEquals(OrderedDict([
('first', OrderedDict([
('description', 'Integer property.'),
+ ('jsexterns', None),
('type', 'integer'),
('value', 42),
])),
('second', OrderedDict([
('description', 'Double property.'),
+ ('jsexterns', None),
('type', 'number'),
('value', 42.0),
])),
('third', OrderedDict([
('description', 'String property.'),
+ ('jsexterns', None),
('type', 'string'),
('value', 'hello world'),
])),
('fourth', OrderedDict([
('description', 'Unvalued property.'),
+ ('jsexterns', None),
('type', 'integer'),
])),
]), schema.get('properties'))
« no previous file with comments | « tools/json_schema_compiler/idl_schema.py ('k') | tools/json_schema_compiler/js_externs_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698