summaryrefslogtreecommitdiffstats
path: root/dom/bindings/parser/tests/test_any_null.py
blob: e3b690bf6f16fbf91579f42995a70af05a4210f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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.")