summaryrefslogtreecommitdiffstats
path: root/dom/bindings/parser/tests/test_enum_duplicate_values.py
blob: 8969281e1c7c6b704aaca3c313bff5cf5d5b93d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import WebIDL


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