mirror of
https://github.com/konvajs/konva.git
synced 2026-01-23 13:26:07 +08:00
more tweaks
This commit is contained in:
@@ -336,7 +336,7 @@ suite('Node', function() {
|
||||
});
|
||||
|
||||
// ======================================================
|
||||
test('test offset attr change', function() {
|
||||
test.only('test offset attr change', function() {
|
||||
/*
|
||||
* the premise of this test to make sure that only
|
||||
* root level attributes trigger an attr change event.
|
||||
@@ -352,9 +352,9 @@ suite('Node', function() {
|
||||
width: 200,
|
||||
height: 50,
|
||||
fill: 'blue',
|
||||
offset: [10, 10],
|
||||
offset: {x:10, y:10},
|
||||
shadowColor: 'black',
|
||||
shadowOffset: [20, 20]
|
||||
shadowOffset: {x:20, y:20}
|
||||
});
|
||||
|
||||
layer.add(rect);
|
||||
@@ -367,7 +367,7 @@ suite('Node', function() {
|
||||
offsetChange = true;
|
||||
});
|
||||
|
||||
rect.setOffset(1, 2);
|
||||
rect.setOffset({x:1, y:2});
|
||||
|
||||
assert.equal(offsetChange, true);
|
||||
});
|
||||
@@ -1406,8 +1406,6 @@ suite('Node', function() {
|
||||
scaleX: 2
|
||||
});
|
||||
|
||||
console.log(rect4);
|
||||
|
||||
var rect5 = new Kinetic.Rect({
|
||||
x: 200,
|
||||
y: 20,
|
||||
|
||||
Reference in New Issue
Block a user