mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
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.")
|