window.onload = function() {
// Each iframe loads the same image. Both images should share the same
// container from the image cache. Check that this holds true. var iframes = document.getElementsByTagName("iframe"); var imgs = Array.from(iframes, function (f) {
return SpecialPowers.wrap(f.contentDocument.getElementsByTagName("img")[0]);
}); var containers = imgs.map(function (img) {
return img.getRequest(SpecialPowers.Ci.nsIImageLoadingContent.CURRENT_REQUEST)
.image;
});
ok(SpecialPowers.compare(containers[0], containers[1]), "containers for identical images in different iframes should be identical");
SimpleTest.finish();
}
</script>
</pre>
</body>
</html>
Messung V0.5
¤ Dauer der Verarbeitung: 0.22 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.