something is off here.. boundary issues
@ -20,12 +20,14 @@ module.exports = {
assert.strictEqual(false, img.complete);
img.onload = function(){
++n;
assert.equal(img.src, png);
};
img.src = png;
beforeExit(function(){
assert.strictEqual(true, img.complete);
assert.strictEqual(320, img.width);
assert.strictEqual(320, img.height);