blob: 90e45ddb7dfc3eda7b28aba9e11b466a7211ec03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
def WebIDLTest(parser, harness):
exception = None
try:
parser.parse(
"""
typedef long foo;
typedef long foo;
"""
)
parser.finish()
except Exception as e:
exception = e
harness.ok(exception, "Should have thrown.")
harness.ok(
"Multiple unresolvable definitions of identifier 'foo'" in str(exception),
"Should have a sane exception message",
)
|