mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
Automatic validations for many attributes. close #436
This commit is contained in:
@@ -925,7 +925,7 @@ suite('Container', function() {
|
||||
stroke: 'black',
|
||||
strokeWidth: 1,
|
||||
fill: 'orange',
|
||||
fontSize: '18',
|
||||
fontSize: 18,
|
||||
fontFamily: 'Arial',
|
||||
text: "The quick brown fox jumped over the lazy dog's back",
|
||||
data: 'M 10,10 300,150 550,150'
|
||||
|
@@ -1,5 +1,5 @@
|
||||
suite('Caching', function() {
|
||||
this.timeout(5000);
|
||||
// this.timeout(5000);
|
||||
// CACHING SHAPE
|
||||
|
||||
test('cache simple rectangle', function() {
|
||||
@@ -423,8 +423,8 @@ suite('Caching', function() {
|
||||
radius: 25,
|
||||
fill: 'red',
|
||||
// rotation on circle should not have any effects
|
||||
stroke: 'black',
|
||||
rotation: 45,
|
||||
stroke: 2,
|
||||
scaleX: 2,
|
||||
scaleY: 2
|
||||
});
|
||||
@@ -537,7 +537,7 @@ suite('Caching', function() {
|
||||
fill: 'red',
|
||||
// rotation on circle should not have any effects
|
||||
rotation: 45,
|
||||
stroke: 2,
|
||||
stroke: 'black',
|
||||
scaleX: 2,
|
||||
scaleY: 2
|
||||
});
|
||||
|
@@ -3318,8 +3318,8 @@ suite('Node', function() {
|
||||
circle.visible(false);
|
||||
assert.equal(circle.visible(), false);
|
||||
|
||||
circle.transformsEnabled(false);
|
||||
assert.equal(circle.transformsEnabled(), false);
|
||||
// circle.transformsEnabled(false);
|
||||
// assert.equal(circle.transformsEnabled(), false);
|
||||
|
||||
circle.position({ x: 6, y: 8 });
|
||||
assert.equal(circle.position().x, 6);
|
||||
|
@@ -16,7 +16,7 @@ suite('TextPath', function() {
|
||||
|
||||
var textpath = new Konva.TextPath({
|
||||
fill: 'orange',
|
||||
fontSize: '24',
|
||||
fontSize: 24,
|
||||
fontFamily: 'Arial',
|
||||
text: "The quick brown fox jumped over the lazy dog's back",
|
||||
data: c
|
||||
@@ -64,7 +64,7 @@ suite('TextPath', function() {
|
||||
|
||||
var textpath = new Konva.TextPath({
|
||||
fill: 'black',
|
||||
fontSize: '10',
|
||||
fontSize: 10,
|
||||
text:
|
||||
"All the world's a stage, and all the men and women merely players. They have their exits and their entrances; And one man in his time plays many parts.",
|
||||
data: c
|
||||
@@ -116,7 +116,7 @@ suite('TextPath', function() {
|
||||
stroke: 'black',
|
||||
strokeWidth: 1,
|
||||
fill: 'orange',
|
||||
fontSize: '18',
|
||||
fontSize: 18,
|
||||
fontFamily: 'Arial',
|
||||
text: "The quick brown fox jumped over the lazy dog's back",
|
||||
data: c
|
||||
@@ -139,7 +139,7 @@ suite('TextPath', function() {
|
||||
stroke: 'black',
|
||||
strokeWidth: 1,
|
||||
fill: 'orange',
|
||||
fontSize: '18',
|
||||
fontSize: 18,
|
||||
fontFamily: 'Arial',
|
||||
text: "The quick brown fox jumped over the lazy dog's back",
|
||||
data: c
|
||||
@@ -167,7 +167,7 @@ suite('TextPath', function() {
|
||||
stroke: 'black',
|
||||
strokeWidth: 1,
|
||||
fill: 'orange',
|
||||
fontSize: '8',
|
||||
fontSize: 8,
|
||||
fontFamily: 'Arial',
|
||||
text:
|
||||
"All the world's a stage, and all the men and women merely players. They have their exits and their entrances; And one man in his time plays many parts.",
|
||||
@@ -194,7 +194,7 @@ suite('TextPath', function() {
|
||||
|
||||
var textpath = new Konva.TextPath({
|
||||
fill: 'black',
|
||||
fontSize: '10',
|
||||
fontSize: 10,
|
||||
text:
|
||||
"All the world's a stage, and all the men and women merely players. They have their exits and their entrances; And one man in his time plays many parts.",
|
||||
data: c
|
||||
@@ -215,7 +215,7 @@ suite('TextPath', function() {
|
||||
var textpath = new Konva.TextPath({
|
||||
y: 50,
|
||||
fill: 'black',
|
||||
fontSize: '24',
|
||||
fontSize: 24,
|
||||
text: Array(4).join(
|
||||
"All the world's a stage, and all the men and women merely players. They have their exits and their entrances; And one man in his time plays many parts."
|
||||
),
|
||||
@@ -376,7 +376,7 @@ suite('TextPath', function() {
|
||||
|
||||
var textpath = new Konva.TextPath({
|
||||
fill: 'orange',
|
||||
fontSize: '24',
|
||||
fontSize: 24,
|
||||
fontFamily: 'Arial',
|
||||
text: "The quick brown fox jumped over the lazy dog's back",
|
||||
data: c,
|
||||
|
Reference in New Issue
Block a user