mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add more CompounPath tests.
This commit is contained in:
parent
889b1687f9
commit
4d0858c6bf
1 changed files with 7 additions and 3 deletions
|
@ -37,10 +37,14 @@ test('clockwise', function() {
|
|||
return path3.clockwise;
|
||||
}, true);
|
||||
|
||||
new CompoundPath([
|
||||
path1, path2, path3
|
||||
]);
|
||||
var compound = new CompoundPath(path1, path2, path3);
|
||||
|
||||
equals(function() {
|
||||
return compound.lastChild == path3;
|
||||
}, true);
|
||||
equals(function() {
|
||||
return compound.firstChild == path1;
|
||||
}, true);
|
||||
equals(function() {
|
||||
return path1.clockwise;
|
||||
}, true);
|
||||
|
|
Loading…
Reference in a new issue