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_interface_const_identifier_conflicts.py
blob
84f9eeb1f45a2eac1a1e8c93110e067946129cba
1
import
WebIDL
2
3
4
def
WebIDLTest
(
parser
,
harness
):
5
threw
=
False
6
try
:
7
parser
.
parse
(
8
"""
9
interface IdentifierConflict {
10
const byte thing1 = 1;
11
const unsigned long thing1 = 1;
12
};
13
"""
14
)
15
16
parser
.
finish
()
17
except
WebIDL
.
WebIDLError
:
18
threw
=
True
19
20
harness
.
ok
(
threw
,
"Should have thrown."
)