Add more CompounPath tests.

This commit is contained in:
Jürg Lehni 2011-05-16 20:16:51 +01:00
parent 889b1687f9
commit 4d0858c6bf

View file

@ -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);