michael@0: def WebIDLTest(parser, harness): michael@0: threw = False michael@0: try: michael@0: parser.parse(""" michael@0: dictionary Foo { michael@0: short a; michael@0: }; michael@0: michael@0: dictionary Foo1 { michael@0: Foo[] b; michael@0: }; michael@0: """) michael@0: results = parser.finish() michael@0: except: michael@0: threw = True michael@0: michael@0: harness.ok(threw, "Array must not contain dictionary " michael@0: "as element type.")