more tweaks

This commit is contained in:
Eric Rowell
2013-12-04 08:56:21 -08:00
parent c98a9d76a9
commit 5d5a378375
3 changed files with 30 additions and 33 deletions

View File

@@ -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,