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