4 def WebIDLTest(parser
, harness
):
9 [LegacyNoInterfaceObject]
10 interface TestConstructorLegacyNoInterfaceObject {
17 except WebIDL
.WebIDLError
:
20 harness
.ok(threw
, "Should have thrown.")
22 parser
= parser
.reset()
26 [LegacyNoInterfaceObject, LegacyFactoryFunction=FooBar]
27 interface TestLegacyFactoryFunctionLegacyNoInterfaceObject {
32 # Test HTMLConstructor and LegacyNoInterfaceObject
33 parser
= parser
.reset()
39 [LegacyNoInterfaceObject]
40 interface TestHTMLConstructorLegacyNoInterfaceObject {
41 [HTMLConstructor] constructor();
47 except WebIDL
.WebIDLError
:
50 harness
.ok(threw
, "Should have thrown.")