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'], |