1 def WebIDLTest(parser
, harness
):
10 results
= parser
.finish()
12 # There should be no duplicate interfaces in the result.
13 expectedNames
= sorted(["Foo", "Bar"])
14 actualNames
= sorted(map(lambda iface
: iface
.identifier
.name
, results
))
16 actualNames
, expectedNames
, "Parser shouldn't output duplicate names."