migrated path tests to Mocha, and also correctly fixed #567

This commit is contained in:
Eric Rowell
2013-09-07 23:42:11 -07:00
parent 9141953569
commit 976b88dea5
7 changed files with 204 additions and 458 deletions

View File

@@ -10,12 +10,7 @@ suite('Line', function() {
}, {
x: 340,
y: 23
}
/*, {
x: 500,
y: 109
}*/
];
}];
var line = new Kinetic.Line({
points: points,
@@ -41,10 +36,13 @@ suite('Line', function() {
}]);
assert.equal(line.getPoints()[0].x, 5);
line.setPoints([73, 160, 340, 23]);
line.setPoints([73, 160, 340, 23, 340, 80]);
assert.equal(line.getPoints()[0].x, 73);
assert.equal(line.getClassName(), 'Line');
layer.draw();
showHit(layer);
});
// ======================================================