function tagName(aTag) {
return "<" + aTag + ">";
}
for (var tag of allTags) { var node = document.createElement(tag);
// Have to use the proto's toString(), since HTMLAnchorElement and company
// override toString(). var nodeString = HTMLElement.prototype.toString.apply(node);
// Debug builds have extra info, so chop off after "Element" if it's followed
// by ' ' or ']'
nodeString = nodeString.replace(/Element[\] ].*/, "Element");
var classInfoString = getClassName(tag);
is(nodeString, "[object " + classInfoString, "Unexpected classname for " + tagName(tag));
is(node instanceof window[classInfoString], true,
tagName(tag) + " not an instance of " + classInfos[tag]);
if (classInfoString != 'HTMLUnknownElement') {
is(node instanceof HTMLUnknownElement, false,
tagName(tag) + " is an instance of HTMLUnknownElement");
} else {
is(node instanceof HTMLUnknownElement, true,
tagName(tag) + " is an instance of HTMLUnknownElement");
}
// Check that each node QIs to all the things we expect it to QI to
for (var iface of interfaces[tag].concat(interfacesNonClassinfo[tag])) {
is(iface in SpecialPowers.Ci, true,
iface + " not in Components.interfaces");
is(node instanceof SpecialPowers.Ci[iface], true,
tagName(tag) + " does not QI to " + iface);
}
}
</script>
</pre>
</body>
</html>
Messung V0.5
¤ Dauer der Verarbeitung: 0.26 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.