4 def WebIDLTest(parser
, harness
):
9 interface SpecialMethodSignatureMismatch1 {
10 getter long long foo(long index);
16 except WebIDL
.WebIDLError
:
19 harness
.ok(threw
, "Should have thrown.")
25 interface SpecialMethodSignatureMismatch2 {
26 getter undefined foo(unsigned long index);
32 except WebIDL
.WebIDLError
:
35 harness
.ok(threw
, "Should have thrown.")
41 interface SpecialMethodSignatureMismatch3 {
42 getter boolean foo(unsigned long index, boolean extraArg);
48 except WebIDL
.WebIDLError
:
51 harness
.ok(threw
, "Should have thrown.")
57 interface SpecialMethodSignatureMismatch4 {
58 getter boolean foo(unsigned long... index);
64 except WebIDL
.WebIDLError
:
67 harness
.ok(threw
, "Should have thrown.")
73 interface SpecialMethodSignatureMismatch5 {
74 getter boolean foo(optional unsigned long index);
80 except WebIDL
.WebIDLError
:
83 harness
.ok(threw
, "Should have thrown.")
89 interface SpecialMethodSignatureMismatch6 {
96 except WebIDL
.WebIDLError
:
99 harness
.ok(threw
, "Should have thrown.")
105 interface SpecialMethodSignatureMismatch7 {
106 deleter long long foo(long index);
112 except WebIDL
.WebIDLError
:
115 harness
.ok(threw
, "Should have thrown.")
121 interface SpecialMethodSignatureMismatch9 {
122 deleter boolean foo(unsigned long index, boolean extraArg);
128 except WebIDL
.WebIDLError
:
131 harness
.ok(threw
, "Should have thrown.")
137 interface SpecialMethodSignatureMismatch10 {
138 deleter boolean foo(unsigned long... index);
144 except WebIDL
.WebIDLError
:
147 harness
.ok(threw
, "Should have thrown.")
153 interface SpecialMethodSignatureMismatch11 {
154 deleter boolean foo(optional unsigned long index);
160 except WebIDL
.WebIDLError
:
163 harness
.ok(threw
, "Should have thrown.")
169 interface SpecialMethodSignatureMismatch12 {
170 deleter boolean foo();
176 except WebIDL
.WebIDLError
:
179 harness
.ok(threw
, "Should have thrown.")
185 interface SpecialMethodSignatureMismatch13 {
186 setter long long foo(long index, long long value);
192 except WebIDL
.WebIDLError
:
195 harness
.ok(threw
, "Should have thrown.")
201 interface SpecialMethodSignatureMismatch15 {
202 setter boolean foo(unsigned long index, boolean value, long long extraArg);
208 except WebIDL
.WebIDLError
:
211 harness
.ok(threw
, "Should have thrown.")
217 interface SpecialMethodSignatureMismatch16 {
218 setter boolean foo(unsigned long index, boolean... value);
224 except WebIDL
.WebIDLError
:
227 harness
.ok(threw
, "Should have thrown.")
233 interface SpecialMethodSignatureMismatch17 {
234 setter boolean foo(unsigned long index, optional boolean value);
240 except WebIDL
.WebIDLError
:
243 harness
.ok(threw
, "Should have thrown.")
249 interface SpecialMethodSignatureMismatch18 {
250 setter boolean foo();
256 except WebIDL
.WebIDLError
:
259 harness
.ok(threw
, "Should have thrown.")