diff options
Diffstat (limited to 'dom/bindings/parser/tests/test_argument_novoid.py')
-rw-r--r-- | dom/bindings/parser/tests/test_argument_novoid.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dom/bindings/parser/tests/test_argument_novoid.py b/dom/bindings/parser/tests/test_argument_novoid.py new file mode 100644 index 000000000..ef8c2229a --- /dev/null +++ b/dom/bindings/parser/tests/test_argument_novoid.py @@ -0,0 +1,14 @@ +def WebIDLTest(parser, harness): + threw = False + try: + parser.parse(""" + interface VoidArgument1 { + void foo(void arg2); + }; + """) + + results = parser.finish() + except: + threw = True + + harness.ok(threw, "Should have thrown.") |