4 def WebIDLTest(parser
, harness
):
10 [PutForwards=B] readonly attribute long A;
16 except WebIDL
.WebIDLError
:
19 harness
.ok(threw
, "Should have thrown.")
21 parser
= parser
.reset()
27 [PutForwards=B] readonly attribute J A;
35 except WebIDL
.WebIDLError
:
38 harness
.ok(threw
, "Should have thrown.")
40 parser
= parser
.reset()
46 [PutForwards=B] attribute J A;
55 except WebIDL
.WebIDLError
:
58 harness
.ok(threw
, "Should have thrown.")
60 parser
= parser
.reset()
66 [PutForwards=B] static readonly attribute J A;
75 except WebIDL
.WebIDLError
:
78 harness
.ok(threw
, "Should have thrown.")
80 parser
= parser
.reset()
85 callback interface I {
86 [PutForwards=B] readonly attribute J A;
95 except WebIDL
.WebIDLError
:
98 harness
.ok(threw
, "Should have thrown.")
100 parser
= parser
.reset()
106 [PutForwards=C] readonly attribute J A;
107 [PutForwards=C] readonly attribute J B;
110 [PutForwards=D] readonly attribute K C;
113 [PutForwards=A] readonly attribute I D;
119 except WebIDL
.WebIDLError
:
122 harness
.ok(threw
, "Should have thrown.")
124 parser
= parser
.reset()
130 [PutForwards=B] readonly attribute K A;
133 readonly attribute long B;
141 except WebIDL
.WebIDLError
:
146 "PutForwards should be able to forward to an attribute on an "
147 "inherited interface.",