mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Define failing test for #227
This commit is contained in:
parent
b99d54f8c3
commit
cb1f9e5b7c
1 changed files with 9 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue