From 3d57216ffeddbc03260de87eb78ae32013b4b3b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 22 Jul 2016 13:15:05 +0200 Subject: [PATCH] Update test for #944 to work with new way of handling compound-paths. But keep deactivated as it is currently failing, see #1116 --- test/tests/PathItem_Contains.js | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/test/tests/PathItem_Contains.js b/test/tests/PathItem_Contains.js index d3083805..cbd8d104 100644 --- a/test/tests/PathItem_Contains.js +++ b/test/tests/PathItem_Contains.js @@ -294,15 +294,19 @@ test('Path#contains() (straight curves with zero-winding: #943)', function() { /* test('CompoundPath#contains() (nested touching circles: #944)', function() { - var c1 = new Path.Circle({ - center: [200, 200], - radius: 100 + var cp = new CompoundPath({ + children: [ + new Path.Circle({ + center: [200, 200], + radius: 100 + }), + new Path.Circle({ + center: [150, 200], + radius: 50 + }) + ], + fillRule: 'evenodd' }); - var c2 = new Path.Circle({ - center: [150, 200], - radius: 50 - }); - var cp = new CompoundPath([c1, c2]); testPoint(cp, new Point(100, 200), true); }); */