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_empty_enum.py
blob
ad002caa4ee8a303bd70b139a82d72efb5b7e18e
1
import
WebIDL
2
3
4
def
WebIDLTest
(
parser
,
harness
):
5
try
:
6
parser
.
parse
(
7
"""
8
enum TestEmptyEnum {
9
};
10
"""
11
)
12
13
harness
.
ok
(
False
,
"Should have thrown!"
)
14
except
WebIDL
.
WebIDLError
:
15
harness
.
ok
(
True
,
"Parsing TestEmptyEnum enum should fail"
)
16
17
parser
.
finish
()