mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Define failing test for Path#contains() and open paths.
This commit is contained in:
parent
f45a66d2ee
commit
ac1908878e
1 changed files with 7 additions and 0 deletions
|
@ -48,6 +48,13 @@ test('Path#contains() (Round Rectangle)', function() {
|
||||||
testPoint(path, new Point(100, 20), true);
|
testPoint(path, new Point(100, 20), true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('Path#contains() (Open Circle)', function() {
|
||||||
|
var path = new Path.Circle([100, 100], 100);
|
||||||
|
path.closed = false;
|
||||||
|
path.fillColor = '#ff0000';
|
||||||
|
testPoint(path, new Point(40, 160), false);
|
||||||
|
});
|
||||||
|
|
||||||
test('CompoundPath#contains() (Donut)', function() {
|
test('CompoundPath#contains() (Donut)', function() {
|
||||||
var path = new CompoundPath([
|
var path = new CompoundPath([
|
||||||
new Path.Circle([0, 0], 50),
|
new Path.Circle([0, 0], 50),
|
||||||
|
|
Loading…
Reference in a new issue