repo.or.cz
/
gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git]
/
dom
/
bindings
/
parser
/
tests
/
test_argument_novoid.py
blob
a72865e35b4f0a7b0db3e7458ca92d14279ccd5e
1
import
WebIDL
2
3
4
def
WebIDLTest
(
parser
,
harness
):
5
threw
=
False
6
try
:
7
parser
.
parse
(
8
"""
9
interface VoidArgument1 {
10
void foo(void arg2);
11
};
12
"""
13
)
14
15
parser
.
finish
()
16
except
WebIDL
.
WebIDLError
:
17
threw
=
True
18
19
harness
.
ok
(
threw
,
"Should have thrown."
)