| 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 1f5d7d67ec24ce114fc96654c0077378895865db..184f55897c188ea7906ae1472c50898c76ff2eda 100755
|
| --- a/tools/json_schema_compiler/idl_schema_test.py
|
| +++ b/tools/json_schema_compiler/idl_schema_test.py
|
| @@ -108,6 +108,18 @@ class IdlSchemaTest(unittest.TestCase):
|
| self.assertTrue(idl_basics['internal'])
|
| self.assertFalse(idl_basics['nodoc'])
|
|
|
| + def testAllPlatformsNamespace(self):
|
| + schema = idl_schema.Load('test/idl_namespace_all_platforms.idl')[0]
|
| + self.assertEquals('idl_namespace_all_platforms', schema['namespace'])
|
| + expected = ['chromeos', 'chromeos_touch', 'linux', 'mac', 'win']
|
| + self.assertEquals(expected, schema['platforms'])
|
| +
|
| + def testChromeOSPlatformsNamespace(self):
|
| + schema = idl_schema.Load('test/idl_namespace_chromeos.idl')[0]
|
| + self.assertEquals('idl_namespace_chromeos', schema['namespace'])
|
| + expected = ['chromeos']
|
| + self.assertEquals(expected, schema['platforms'])
|
| +
|
| def testCallbackComment(self):
|
| schema = self.idl_basics
|
| self.assertEquals('A comment on a callback.',
|
|
|