mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Update test for #944 to work with new way of handling compound-paths.
But keep deactivated as it is currently failing, see #1116
This commit is contained in:
parent
a5d04ef97c
commit
3d57216ffe
1 changed files with 12 additions and 8 deletions
|
@ -294,15 +294,19 @@ test('Path#contains() (straight curves with zero-winding: #943)', function() {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
test('CompoundPath#contains() (nested touching circles: #944)', function() {
|
test('CompoundPath#contains() (nested touching circles: #944)', function() {
|
||||||
var c1 = new Path.Circle({
|
var cp = new CompoundPath({
|
||||||
center: [200, 200],
|
children: [
|
||||||
radius: 100
|
new Path.Circle({
|
||||||
|
center: [200, 200],
|
||||||
|
radius: 100
|
||||||
|
}),
|
||||||
|
new Path.Circle({
|
||||||
|
center: [150, 200],
|
||||||
|
radius: 50
|
||||||
|
})
|
||||||
|
],
|
||||||
|
fillRule: 'evenodd'
|
||||||
});
|
});
|
||||||
var c2 = new Path.Circle({
|
|
||||||
center: [150, 200],
|
|
||||||
radius: 50
|
|
||||||
});
|
|
||||||
var cp = new CompoundPath([c1, c2]);
|
|
||||||
testPoint(cp, new Point(100, 200), true);
|
testPoint(cp, new Point(100, 200), true);
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue