| 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 59fcd6da00710da317b60d1bf3296bae4166b169..d045f6206513a16cd44ff13395ff8da51d07ddae 100755
|
| --- a/tools/json_schema_compiler/idl_schema_test.py
|
| +++ b/tools/json_schema_compiler/idl_schema_test.py
|
| @@ -43,5 +43,13 @@ class IdlSchemaTest(unittest.TestCase):
|
| 'items':{'$ref':'MyType2'}}]}]
|
| self.assertEquals(expected, getParams(schema, 'function12'))
|
|
|
| +
|
| + def testArrayOfCallbacks(self):
|
| + schema = idl_schema.Load('test/idl_callback_arrays.idl')[0]
|
| + expected = [{'type':'array', 'name':'callbacks',
|
| + 'items':{'type':'function', 'name':'MyCallback',
|
| + 'parameters':[{'type':'integer', 'name':'x'}]}}]
|
| + self.assertEquals(expected, getParams(schema, 'whatever'))
|
| +
|
| if __name__ == '__main__':
|
| unittest.main()
|
|
|