Skip to content

Commit 211467f

Browse files
author
André Fiedler
committed
"better unit test for gradient parsing, check inverted width/height"
1 parent 6390c1c commit 211467f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/qunit/unit/generate.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ $(function() {
1919
{
2020
type: 'linear',
2121
x0: 0,
22-
y0: 25,
22+
y0: 35,
2323
x1: 50,
24-
y1: 25,
24+
y1: 35,
2525
colorStops: [
2626
{
2727
color: "rgb(255, 0, 0)",
@@ -40,9 +40,9 @@ $(function() {
4040
{
4141
type: 'linear',
4242
x0: 0,
43-
y0: 25,
43+
y0: 35,
4444
x1: 50,
45-
y1: 25,
45+
y1: 35,
4646
colorStops: [
4747
{
4848
color: "rgb(206, 219, 233)",
@@ -83,7 +83,7 @@ $(function() {
8383
x0: 25,
8484
y0: 0,
8585
x1: 25,
86-
y1: 50,
86+
y1: 70,
8787
colorStops: [
8888
{
8989
color: "rgb(240, 183, 161)",
@@ -117,7 +117,7 @@ $(function() {
117117

118118
gradient = _html2canvas.Generate.parseGradient(src, {
119119
width: 50,
120-
height: 50
120+
height: 70
121121
});
122122

123123
//QUnit.deepEqual(gradient, expected['Generate.parseGradient'][i], 'Parsed gradient; got: ' + JSON.stringify(gradient));

0 commit comments

Comments
 (0)