michael@0: import WebIDL michael@0: michael@0: def WebIDLTest(parser, harness): michael@0: try: michael@0: parser.parse(""" michael@0: enum TestEmptyEnum { michael@0: }; michael@0: """) michael@0: michael@0: harness.ok(False, "Should have thrown!") michael@0: except: michael@0: harness.ok(True, "Parsing TestEmptyEnum enum should fail") michael@0: michael@0: results = parser.finish()