From 4d0858c6bfe13f8e1d91c2c33e1d5683065eb078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 16 May 2011 20:16:51 +0100 Subject: [PATCH] Add more CompounPath tests. --- test/tests/CompoundPath.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/tests/CompoundPath.js b/test/tests/CompoundPath.js index 2f6dbf21..3dbb3afa 100644 --- a/test/tests/CompoundPath.js +++ b/test/tests/CompoundPath.js @@ -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);