Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / dom / bindings / parser / tests / test_deduplicate.py
blob2308f6201e4626ffe729e2bcc555b1d8baca697e
1 def WebIDLTest(parser, harness):
2 parser.parse(
3 """
4 interface Foo;
5 interface Bar;
6 interface Foo;
7 """
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))
15 harness.check(
16 actualNames, expectedNames, "Parser shouldn't output duplicate names."