From ac1908878e05dd30fc24570e3f126000044d64c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 12 Jun 2013 00:28:57 -0700 Subject: [PATCH] Define failing test for Path#contains() and open paths. --- test/tests/Item_Contains.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/tests/Item_Contains.js b/test/tests/Item_Contains.js index 2c807879..526a6bb4 100644 --- a/test/tests/Item_Contains.js +++ b/test/tests/Item_Contains.js @@ -48,6 +48,13 @@ test('Path#contains() (Round Rectangle)', function() { testPoint(path, new Point(100, 20), true); }); +test('Path#contains() (Open Circle)', function() { + var path = new Path.Circle([100, 100], 100); + path.closed = false; + path.fillColor = '#ff0000'; + testPoint(path, new Point(40, 160), false); +}); + test('CompoundPath#contains() (Donut)', function() { var path = new CompoundPath([ new Path.Circle([0, 0], 50),