mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Rename Item_Contains tests to PathItem_Contains and add more failing tests for #400.
This commit is contained in:
parent
ea89498e48
commit
641514cbf3
2 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue