4 def WebIDLTest(parser
, harness
):
10 [CEReactions(DOMString a)] undefined foo(boolean arg2);
16 except WebIDL
.WebIDLError
:
19 harness
.ok(threw
, "Should have thrown for [CEReactions] with an argument")
21 parser
= parser
.reset()
27 [CEReactions(DOMString b)] readonly attribute boolean bar;
33 except WebIDL
.WebIDLError
:
36 harness
.ok(threw
, "Should have thrown for [CEReactions] with an argument")
38 parser
= parser
.reset()
44 [CEReactions] attribute boolean bar;
50 except Exception as e
:
53 "Shouldn't have thrown for [CEReactions] used on writable attribute. %s"
58 parser
= parser
.reset()
64 [CEReactions] undefined foo(boolean arg2);
70 except Exception as e
:
73 "Shouldn't have thrown for [CEReactions] used on regular operations. %s"
78 parser
= parser
.reset()
84 [CEReactions] readonly attribute boolean A;
90 except WebIDL
.WebIDLError
:
94 threw
, "Should have thrown for [CEReactions] used on a readonly attribute"
97 parser
= parser
.reset()
109 except WebIDL
.WebIDLError
:
112 harness
.ok(threw
, "Should have thrown for [CEReactions] used on a interface")
114 parser
= parser
.reset()
120 [CEReactions] getter any(DOMString name);
125 except WebIDL
.WebIDLError
:
128 harness
.ok(threw
, "Should have thrown for [CEReactions] used on a named getter")
130 parser
= parser
.reset()
136 [CEReactions] legacycaller double compute(double x);
141 except WebIDL
.WebIDLError
:
144 harness
.ok(threw
, "Should have thrown for [CEReactions] used on a legacycaller")
146 parser
= parser
.reset()
152 [CEReactions] stringifier DOMString ();
157 except WebIDL
.WebIDLError
:
160 harness
.ok(threw
, "Should have thrown for [CEReactions] used on a stringifier")