function checkFirst()
{ var testimage = document.getElementById('test-image');
first = document.createElement('canvas') var ctx = first.getContext('2d');
ctx.drawImage(testimage, 0, 0);
var newimg = new Image();
newimg.onload = checkSecond;
newimg.src = "bug552605.sjs";
document.body.appendChild(newimg);
}
function checkSecond()
{ var testimage = document.getElementById('test-image');
second = document.createElement('canvas') var ctx = second.getContext('2d');
ctx.drawImage(testimage, 0, 0);
// Check that the images are the same, since they're in the same document. var values = compareSnapshots(first, second, true);
ok(values[0], "Image should be the same for all loads.");
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.