From cb1f9e5b7c5af8bef6b522a397448ed5a9bcd138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 12 Jun 2013 00:00:42 -0700 Subject: [PATCH] Define failing test for #227 --- test/tests/Item_Contains.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/tests/Item_Contains.js b/test/tests/Item_Contains.js index bc849156..2c807879 100644 --- a/test/tests/Item_Contains.js +++ b/test/tests/Item_Contains.js @@ -39,6 +39,15 @@ test('Path#contains() (Regular Polygon)', function() { testPoint(path, new Point(10, 20), false); }); +test('Path#contains() (Round Rectangle)', function() { + var rectangle = new Rectangle({ + point: new Point(0, 0), + size: new Size(200, 40) + }); + var path = new Path.Rectangle(rectangle, new Size(20, 20)); + testPoint(path, new Point(100, 20), true); +}); + test('CompoundPath#contains() (Donut)', function() { var path = new CompoundPath([ new Path.Circle([0, 0], 50),