summaryrefslogtreecommitdiff
path: root/chromium/tools/json_schema_compiler/idl_schema_test.py
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-09-18 14:34:04 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-10-04 11:15:27 +0000
commite6430e577f105ad8813c92e75c54660c4985026e (patch)
tree88115e5d1fb471fea807111924dcccbeadbf9e4f /chromium/tools/json_schema_compiler/idl_schema_test.py
parent53d399fe6415a96ea6986ec0d402a9c07da72453 (diff)
downloadqtwebengine-chromium-e6430e577f105ad8813c92e75c54660c4985026e.tar.gz
BASELINE: Update Chromium to 61.0.3163.99
Change-Id: I8452f34574d88ca2b27af9bd56fc9ff3f16b1367 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/tools/json_schema_compiler/idl_schema_test.py')
-rwxr-xr-xchromium/tools/json_schema_compiler/idl_schema_test.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/chromium/tools/json_schema_compiler/idl_schema_test.py b/chromium/tools/json_schema_compiler/idl_schema_test.py
index f9a4d8702a7..4b47b44fab4 100755
--- a/chromium/tools/json_schema_compiler/idl_schema_test.py
+++ b/chromium/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'],