function drawImage()
{ varcanvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d'); var iframeDoc = document.getElementById('iframe').contentDocument;
function iframeLoad()
{
data1 = drawImage();
document.getElementById('iframe').style.display = 'none';
// Spin the event loop a few times to give the image in the display:none
// iframea chance to be discarded.
SimpleTest.executeSoon(function() {
SimpleTest.executeSoon(function() {
SimpleTest.executeSoon(function() {
step2();
});
});
});
}
function step2()
{
is(drawImage(), data1, "Same image before and after iframe display:none");
SimpleTest.finish();
}
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.