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