4 def WebIDLTest(parser
, harness
):
8 [LegacyUnenumerableNamedProperties]
10 getter long(DOMString name);
13 getter long(DOMString name);
17 results
= parser
.finish()
18 harness
.check(len(results
), 3, "Should have three interfaces")
20 parser
= parser
.reset()
25 [LegacyUnenumerableNamedProperties]
26 interface NoNamedGetter {
31 results
= parser
.finish()
32 except WebIDL
.WebIDLError
:
34 harness
.ok(threw
, "Should have thrown.")
36 parser
= parser
.reset()
41 [LegacyUnenumerableNamedProperties=Foo]
42 interface ShouldNotHaveArg {
43 getter long(DOMString name);
48 results
= parser
.finish()
49 except WebIDL
.WebIDLError
:
51 harness
.ok(threw
, "Should have thrown.")
53 parser
= parser
.reset()
58 [LegacyUnenumerableNamedProperties]
60 getter long(DOMString name);
62 interface Bar : Foo {};
63 [LegacyUnenumerableNamedProperties]
65 getter long(DOMString name);
70 results
= parser
.finish()
71 except WebIDL
.WebIDLError
:
73 harness
.ok(threw
, "Should have thrown.")