1 def WebIDLTest(parser
, harness
):
5 undefined foo(object constructor);
10 results
= parser
.finish()
11 harness
.check(len(results
), 1, "Should have an interface")
13 harness
.check(len(iface
.members
), 1, "Should have an operation")
14 operation
= iface
.members
[0]
15 harness
.check(len(operation
.signatures()), 1, "Should have one signature")
16 (retval
, args
) = operation
.signatures()[0]
17 harness
.check(len(args
), 1, "Should have an argument")
19 args
[0].identifier
.name
,
21 "Should have an identifier named 'constructor'",