trisquel-icecat/icecat/dom/bindings/parser/tests/test_double_null.py

19 lines
345 B
Python

import WebIDL
def WebIDLTest(parser, harness):
threw = False
try:
parser.parse(
"""
interface DoubleNull {
attribute byte?? foo;
};
"""
)
parser.finish()
except WebIDL.WebIDLError:
threw = True
harness.ok(threw, "Should have thrown.")