From 810e84559d07cb3c7ea5abdb7e393a8200874034 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Thu, 11 Nov 2010 00:57:45 -0800 Subject: [PATCH] Added Image#src getter test for strange race condition something is off here.. boundary issues --- test/image.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/image.test.js b/test/image.test.js index 85cb0e9..57a7146 100644 --- a/test/image.test.js +++ b/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);