/** Test for Bug 876098 **/ vardiv = document.createElement("div");
// count has to be large enough to trigger ion-compilation var count = 2000;
// Separate function to make sure nothing weird we do block the ion-compile
(function() {
for (var i = 0; i < count; ++i) { varspan = document.createElement("span"); span.x = "foo"; div.appendChild(span);
}
})();
SpecialPowers.gc();
function allHaveProp() { var kids = div.childNodes;
for (var i = 0; i < count; ++i) {
if (kids[i].x != "foo") {
return false;
}
}
return true;
}
ok(allHaveProp(), "All spans should have the property we added");
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.