Sign in
third-party-mirror
/
servo
/
refs/heads/main
/
.
/
third_party
/
WebIDL
/
tests
/
test_double_null.py
blob: 28166020c1049a6964c411f84cf884ec1c3468b8 [
file
] [
log
] [
blame
] [
edit
]
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."
)