From db620e62bea0f62c7678a40c9af5c334f8bb3623 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Fri, 15 Jul 2011 11:31:12 +0200 Subject: [PATCH] Fix mistake in HitResult test. --- test/tests/HitResult.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/tests/HitResult.js b/test/tests/HitResult.js index 330e98f9..085eb756 100644 --- a/test/tests/HitResult.js +++ b/test/tests/HitResult.js @@ -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 });