4 def WebIDLTest(parser
, harness
):
9 interface VariadicConstraints1 {
10 undefined foo(byte... arg1, byte arg2);
16 except WebIDL
.WebIDLError
:
21 "Should have thrown on variadic argument followed by required " "argument.",
24 parser
= parser
.reset()
29 interface VariadicConstraints2 {
30 undefined foo(byte... arg1, optional byte arg2);
35 except WebIDL
.WebIDLError
:
40 "Should have thrown on variadic argument followed by optional " "argument.",
43 parser
= parser
.reset()
48 interface VariadicConstraints3 {
49 undefined foo(optional byte... arg1);
55 except WebIDL
.WebIDLError
:
60 "Should have thrown on variadic argument explicitly flagged as " "optional.",
63 parser
= parser
.reset()
68 interface VariadicConstraints4 {
69 undefined foo(byte... arg1 = 0);
74 except WebIDL
.WebIDLError
:
77 harness
.ok(threw
, "Should have thrown on variadic argument with default value.")