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

Unified Diff: trunk/src/tools/json_schema_compiler/idl_schema_test.py

Issue 47403003: Revert 231982 "Docserver: Display enum value descriptions in API..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 | « trunk/src/tools/json_schema_compiler/idl_schema.py ('k') | trunk/src/tools/json_schema_compiler/model.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/tools/json_schema_compiler/idl_schema_test.py
===================================================================
--- trunk/src/tools/json_schema_compiler/idl_schema_test.py (revision 232015)
+++ trunk/src/tools/json_schema_compiler/idl_schema_test.py (working copy)
@@ -77,9 +77,7 @@
def testEnum(self):
schema = self.idl_basics
- expected = {'enum': [{'name': 'name1', 'description': 'comment1'},
- {'name': 'name2'}],
- 'description': 'Enum description',
+ expected = {'enum': ['name1', 'name2'], 'description': 'Enum description',
'type': 'string', 'id': 'EnumType'}
self.assertEquals(expected, getType(schema, expected['id']))
@@ -164,12 +162,10 @@
schema = idl_schema.Load('test/idl_reserved_words.idl')[0]
foo_type = getType(schema, 'Foo')
- self.assertEquals([{'name': 'float'}, {'name': 'DOMString'}],
- foo_type['enum'])
+ self.assertEquals(['float', 'DOMString'], foo_type['enum'])
enum_type = getType(schema, 'enum')
- self.assertEquals([{'name': 'callback'}, {'name': 'namespace'}],
- enum_type['enum'])
+ self.assertEquals(['callback', 'namespace'], enum_type['enum'])
dictionary = getType(schema, 'dictionary')
self.assertEquals('integer', dictionary['properties']['long']['type'])
« no previous file with comments | « trunk/src/tools/json_schema_compiler/idl_schema.py ('k') | trunk/src/tools/json_schema_compiler/model.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698