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

Unified Diff: tools/json_schema_compiler/idl_schema_test.py

Issue 2930703003: Extensions: Support forIOThread function schema attribute for IDL files. (Closed)
Patch Set: -- Created 3 years, 6 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/test/idl_basics.idl » ('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 f9a4d8702a7ab12a6113c1db6b880d5650a70e7c..4b47b44fab4f986c01a41293e9657f046ed95d98 100755
--- a/tools/json_schema_compiler/idl_schema_test.py
+++ b/tools/json_schema_compiler/idl_schema_test.py
@@ -79,6 +79,17 @@ class IdlSchemaTest(unittest.TestCase):
'c': {'name': 'c', 'type': 'string'}},
getType(self.idl_basics, 'MyType1')['properties'])
+ def testIOThreadFunc(self):
+ schema = self.idl_basics
+
+ func = getFunction(schema, 'function32')
+ self.assertTrue(func is not None)
+ self.assertTrue(func['forIOThread'])
+
+ func = getFunction(schema, 'function1')
+ self.assertTrue(func is not None)
+ self.assertTrue('forIOThread' not in func)
+
def testMemberOrdering(self):
self.assertEquals(
['x', 'y', 'z', 'a', 'b', 'c'],
« no previous file with comments | « tools/json_schema_compiler/idl_schema.py ('k') | tools/json_schema_compiler/test/idl_basics.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698