diff --git a/test/tests/Item_Contains.js b/test/tests/PathItem_Contains.js similarity index 98% rename from test/tests/Item_Contains.js rename to test/tests/PathItem_Contains.js index c3f16b35..b86ad6d0 100644 --- a/test/tests/Item_Contains.js +++ b/test/tests/PathItem_Contains.js @@ -10,7 +10,7 @@ * All rights reserved. */ -module('Item Contains'); +module('PathItem Contains'); function testPoint(item, point, inside) { equals(item.contains(point), inside, 'The point ' + point @@ -200,5 +200,7 @@ test('Path#contains() (complex shape)', function() { testPoint(path, new Point(360, 160), true); testPoint(path, new Point(377, 96), false); + testPoint(path, new Point(410, 218), false); + testPoint(path, new Point(431, 104), false); }); diff --git a/test/tests/load.js b/test/tests/load.js index 986cc42a..682344c7 100644 --- a/test/tests/load.js +++ b/test/tests/load.js @@ -23,7 +23,6 @@ /*#*/ include('Item_Cloning.js'); /*#*/ include('Item_Order.js'); /*#*/ include('Item_Bounds.js'); -/*#*/ include('Item_Contains.js'); /*#*/ include('Layer.js'); /*#*/ include('Group.js'); @@ -39,6 +38,8 @@ /*#*/ include('Path_Length.js'); /*#*/ include('CompoundPath.js'); +/*#*/ include('PathItem_Contains.js'); + /*#*/ include('PlacedSymbol.js'); /*#*/ include('Raster.js');