4 def WebIDLTest(parser
, harness
):
9 interface OptionalConstraints1 {
10 undefined foo(optional byte arg1, byte arg2);
16 except WebIDL
.WebIDLError
:
21 "Should not have thrown on non-optional argument following "
25 parser
= parser
.reset()
28 interface OptionalConstraints2 {
29 undefined foo(optional byte arg1 = 1, optional byte arg2 = 2,
30 optional byte arg3, optional byte arg4 = 4,
31 optional byte arg5, optional byte arg6 = 9);
35 results
= parser
.finish()
36 args
= results
[0].members
[0].signatures()[0][1]
37 harness
.check(len(args
), 6, "Should have 6 arguments")
38 harness
.check(args
[5].defaultValue
.value
, 9, "Should have correct default value")