aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/parser/tests/test_argument_novoid.py
blob: 42e0776e677ca3daa65e617984b981bcf2c89487 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
def WebIDLTest(parser, harness):
    threw = False
    try:
        parser.parse("""
            interface UndefinedArgument1 {
              undefined foo(undefined arg2);
            };
        """)

        results = parser.finish()
    except:
        threw = True

    harness.ok(threw, "Should have thrown.")