From b65a8509972bdbcd4c7d5e6b75d6eac6b74d9216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fiedler?= Date: Mon, 5 Mar 2012 23:15:58 +0000 Subject: [PATCH] "cleanup test" --- tests/qunit/unit/generate.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/qunit/unit/generate.js b/tests/qunit/unit/generate.js index 29a3a21..4a2f846 100644 --- a/tests/qunit/unit/generate.js +++ b/tests/qunit/unit/generate.js @@ -109,7 +109,7 @@ $(function() { $('#backgroundGradients div').each(function(i, el) { $.each(propsToTest['Generate.parseGradient'], function(s, prop) { - var src, gradient, exptd; + var src, gradient; src = _html2canvas.Util.getCSS(el, prop); @@ -120,10 +120,7 @@ $(function() { height: 50 }); - // compare - exptd = expected['Generate.parseGradient'][i]; - - QUnit.deepEqual(gradient, exptd, 'Parsed gradient; got: ' + JSON.stringify(gradient)); + QUnit.deepEqual(gradient, expected['Generate.parseGradient'][i], 'Parsed gradient; got: ' + JSON.stringify(gradient)); } else { QUnit.ok(true, 'No CSS Background Gradient support'); }