function check()
{
count++;
if (count != 2)
return;
var image1 = document.getElementById('test-image1'); var image2 = document.getElementById('test-image2'); var first = document.createElement('canvas') var ctx = first.getContext('2d');
ctx.drawImage(image1, 0, 0);
var second = document.createElement('canvas');
ctx = second.getContext('2d');
ctx.drawImage(image2, 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.