From 4fe353be74786085738289a46525d6a212ccadb0 Mon Sep 17 00:00:00 2001 From: MoyuScript Date: Wed, 7 Mar 2012 18:24:43 +0000 Subject: [PATCH] "better unit test for gradient parsing, check inverted width/height" --- tests/qunit/unit/generate.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/qunit/unit/generate.js b/tests/qunit/unit/generate.js index eb358ed..7f1f5d6 100644 --- a/tests/qunit/unit/generate.js +++ b/tests/qunit/unit/generate.js @@ -19,9 +19,9 @@ $(function() { { type: 'linear', x0: 0, - y0: 25, + y0: 35, x1: 50, - y1: 25, + y1: 35, colorStops: [ { color: "rgb(255, 0, 0)", @@ -40,9 +40,9 @@ $(function() { { type: 'linear', x0: 0, - y0: 25, + y0: 35, x1: 50, - y1: 25, + y1: 35, colorStops: [ { color: "rgb(206, 219, 233)", @@ -83,7 +83,7 @@ $(function() { x0: 25, y0: 0, x1: 25, - y1: 50, + y1: 70, colorStops: [ { color: "rgb(240, 183, 161)", @@ -117,7 +117,7 @@ $(function() { gradient = _html2canvas.Generate.parseGradient(src, { width: 50, - height: 50 + height: 70 }); //QUnit.deepEqual(gradient, expected['Generate.parseGradient'][i], 'Parsed gradient; got: ' + JSON.stringify(gradient));