4 def WebIDLTest(parser
, harness
):
9 interface IdentifierConflictAcrossMembers1 {
10 const byte thing1 = 1;
11 readonly attribute long thing1;
17 except WebIDL
.WebIDLError
:
20 harness
.ok(threw
, "Should have thrown for IdentifierConflictAcrossMembers1.")
22 parser
= parser
.reset()
27 interface IdentifierConflictAcrossMembers2 {
28 readonly attribute long thing1;
29 const byte thing1 = 1;
35 except WebIDL
.WebIDLError
:
38 harness
.ok(threw
, "Should have thrown for IdentifierConflictAcrossMembers2.")
40 parser
= parser
.reset()
45 interface IdentifierConflictAcrossMembers3 {
46 getter boolean thing1(DOMString name);
47 readonly attribute long thing1;
53 except WebIDL
.WebIDLError
:
56 harness
.ok(threw
, "Should have thrown for IdentifierConflictAcrossMembers3.")
58 parser
= parser
.reset()
63 interface IdentifierConflictAcrossMembers4 {
64 const byte thing1 = 1;
71 except WebIDL
.WebIDLError
:
74 harness
.ok(threw
, "Should have thrown for IdentifierConflictAcrossMembers4.")
76 parser
= parser
.reset()
81 interface IdentifierConflictAcrossMembers5 {
89 except WebIDL
.WebIDLError
:
93 not threw
, "Should not have thrown for IdentifierConflictAcrossMembers5."
96 parser
= parser
.reset()
101 interface mixin IdentifierConflictAcrossMembers6Mixin {
104 interface IdentifierConflictAcrossMembers6 {
105 static long thing1();
107 IdentifierConflictAcrossMembers6 includes IdentifierConflictAcrossMembers6Mixin;
112 except WebIDL
.WebIDLError
:
116 not threw
, "Should not have thrown for IdentifierConflictAcrossMembers6."
119 parser
= parser
.reset()
124 interface IdentifierConflictAcrossMembers7 {
125 const byte thing1 = 1;
126 static readonly attribute long thing1;
132 except WebIDL
.WebIDLError
:
135 harness
.ok(threw
, "Should have thrown for IdentifierConflictAcrossMembers7.")
137 parser
= parser
.reset()
142 interface IdentifierConflictAcrossMembers8 {
143 readonly attribute long thing1 = 1;
144 static readonly attribute long thing1;
150 except WebIDL
.WebIDLError
:
153 harness
.ok(threw
, "Should have thrown for IdentifierConflictAcrossMembers8.")
155 parser
= parser
.reset()
160 interface IdentifierConflictAcrossMembers9 {
162 static readonly attribute long thing1;
168 except WebIDL
.WebIDLError
:
171 harness
.ok(threw
, "Should have thrown for IdentifierConflictAcrossMembers9.")