author Kyle Huey <>
Wed, 04 Apr 2012 14:03:08 -0700
changeset 95132 adef80d2b5a0c80c0cc6bc48a072f201d13fbf48
parent 94721 3a0940f904553197a95534bf8ac153bc691766b4
permissions -rw-r--r--
Bug 741125: Update WebIDL parser.

import WebIDL

def WebIDLTest(parser, harness):
        interface Foo;
        interface Bar;
        interface Foo;

    results = parser.finish()

    # There should be no duplicate interfaces in the result.
    expectedNames = sorted(['Foo', 'Bar'])
    actualNames = sorted(map(lambda iface:, results))
    harness.check(actualNames, expectedNames, "Parser shouldn't output duplicate names.")