From 641514cbf3fc6f65c6db05b8628500f5388c0372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 19 Feb 2014 14:35:04 +0100 Subject: [PATCH] Rename Item_Contains tests to PathItem_Contains and add more failing tests for #400. --- test/tests/{Item_Contains.js => PathItem_Contains.js} | 4 +++- test/tests/load.js | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) rename test/tests/{Item_Contains.js => PathItem_Contains.js} (98%) 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');