aboutsummaryrefslogtreecommitdiffstats
path: root/third_party/WebIDL/tests/test_any_null.py
blob: f9afdacb02f607b538141d010475566cd1144c0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
def WebIDLTest(parser, harness):
    threw = False
    try:
        parser.parse(
            """
            interface DoubleNull {
              attribute any? foo;
            };
        """
        )

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

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