mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
change test a bit
This commit is contained in:
parent
48bedf8fa9
commit
3f410b7d3b
@ -770,7 +770,7 @@ suite('Text', function() {
|
||||
x: 10,
|
||||
fillLinearGradientStartPoint: { x: 0, y: 0 },
|
||||
fillLinearGradientEndPoint: { x: 300, y: 0 },
|
||||
fillLinearGradientColorStops: [0, 'yellow', 1, 'red'],
|
||||
fillLinearGradientColorStops: [0, 'black', 1, 'red'],
|
||||
text: 'Text with gradient!!',
|
||||
draggable: true
|
||||
});
|
||||
@ -786,7 +786,7 @@ suite('Text', function() {
|
||||
|
||||
var start = { x: 0, y: 0 };
|
||||
var end = { x: 300, y: 0 };
|
||||
var colorStops = [0, 'yellow', 1, 'red'];
|
||||
var colorStops = [0, 'black', 1, 'red'];
|
||||
var grd = ctx.createLinearGradient(start.x, start.y, end.x, end.y);
|
||||
|
||||
// build color stops
|
||||
|
Loading…
Reference in New Issue
Block a user