harness.check(len(results), 5, "Should know about one thing")
harness.ok(
isinstance(results[4], WebIDL.IDLInterface), "Should have an interface here"
)
members = results[4].members
harness.check(len(members), 1, "Should have one member")
harness.ok(members[0].isAttr(), "Should have attribute")
harness.ok(
members[0].getExtendedAttribute( "ReflectedHTMLAttributeReturningFrozenArray"
) isnotNone, "Should have extended attribute",
)
parser.finish() except WebIDL.WebIDLError:
threw = True
harness.ok(
threw, "Should have thrown because [ReflectedHTMLAttributeReturningFrozenArray] " "should only be used on attributes with a sequence<*Element> type.",
)
parser.finish() except WebIDL.WebIDLError:
threw = True
harness.ok(
threw, "Should have thrown because [ReflectedHTMLAttributeReturningFrozenArray] " "should only be used on attributes with a sequence<*Element> type.",
)
parser.finish() except WebIDL.WebIDLError:
threw = True
harness.ok(
threw, "Should have thrown because [ReflectedHTMLAttributeReturningFrozenArray] " "should only be used on attributes with a sequence<*Element> type.",
)
parser.finish() except WebIDL.WebIDLError:
threw = True
harness.ok(
threw, "Should have thrown because [ReflectedHTMLAttributeReturningFrozenArray] " "should only be used on attributes with a sequence<*Element> type.",
)
parser.finish() except WebIDL.WebIDLError:
threw = True
harness.ok(
threw, "Should have thrown because [ReflectedHTMLAttributeReturningFrozenArray] " "should not be used together with [Cached].",
)
parser.finish() except WebIDL.WebIDLError:
threw = True
harness.ok(
threw, "Should have thrown because [ReflectedHTMLAttributeReturningFrozenArray] " "should not be used together with [Cached].",
)
parser.finish() except WebIDL.WebIDLError:
threw = True
harness.ok(
threw, "Should have thrown because [ReflectedHTMLAttributeReturningFrozenArray] " "should not be used on the attribute of an interface that inherits from " "an interface that also has an attribute with " "[ReflectedHTMLAttributeReturningFrozenArray].",
)
Messung V0.5
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.