Fix mistake in HitResult test.

This commit is contained in:
Jonathan Puckey 2011-07-15 11:31:12 +02:00
parent cb80b828a5
commit db620e62be

View file

@ -143,8 +143,7 @@ test('hitting the center of a path', function() {
test('hitting the center of a path with tolerance', function() {
var path = new Path([0, 0], [100, 100], [200, 0]);
path.closed = true;
var hitResult = paper.project.hitTest(path.position + [1, 1], {
var hitResult = paper.project.hitTest(path.position.add(1, 1), {
center: true
});