Browse Source

Added Image#src getter test for strange race condition

something is off here.. boundary issues
v1.x
Tj Holowaychuk 14 years ago
parent
commit
810e84559d
  1. 2
      test/image.test.js

2
test/image.test.js

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

Loading…
Cancel
Save