diff options
Diffstat (limited to 'components/script/dom/bindings/codegen/parser/tests/test_array.py')
-rw-r--r-- | components/script/dom/bindings/codegen/parser/tests/test_array.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/components/script/dom/bindings/codegen/parser/tests/test_array.py b/components/script/dom/bindings/codegen/parser/tests/test_array.py new file mode 100644 index 00000000000..8f9e9c96854 --- /dev/null +++ b/components/script/dom/bindings/codegen/parser/tests/test_array.py @@ -0,0 +1,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.") |