aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/parser/tests/test_array.py
blob: 8f9e9c96854301feea4624079ea649fe0010c4ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
def WebIDLTest(parser, harness):
    threw = False
    try:
        parser.parse("""
          dictionary Foo {
            short a;
          };

          dictionary Foo1 {
            Foo[] b;
          };
        """)
        results = parser.finish()
    except:
        threw = True

    harness.ok(threw, "Array must not contain dictionary "
                      "as element type.")