mirror of
https://github.com/servo/servo
synced 2026-05-09 00:22:16 +02:00
the latest *.py tests from https://hg.mozilla.org/mozilla-central/archive/tip.tar.gz/dom/bindings/parser/tests/
19 lines
391 B
Python
19 lines
391 B
Python
def WebIDLTest(parser, harness):
|
|
threw = False
|
|
try:
|
|
parser.parse("""
|
|
dictionary Foo {
|
|
short a;
|
|
};
|
|
|
|
dictionary Foo1 {
|
|
Foo[] b;
|
|
};
|
|
""")
|
|
results = parser.finish()
|
|
except:
|
|
threw = True
|
|
|
|
harness.ok(threw, "Array must not contain dictionary "
|
|
"as element type.")
|