michael@0: import WebIDL michael@0: michael@0: def WebIDLTest(parser, harness): michael@0: try: michael@0: parser.parse(""" michael@0: enum TestEnumDuplicateValue { michael@0: "", michael@0: "" michael@0: }; michael@0: """) michael@0: harness.ok(False, "Should have thrown!") michael@0: except: michael@0: harness.ok(True, "Enum TestEnumDuplicateValue should throw")