From b579b9c96c8108aa7cbfcae8fd97848825484ecd Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sat, 21 May 2011 12:46:21 +0200 Subject: [PATCH] Tests: cloneAndCompare: compare item._parent and item.nextSibling. --- test/lib/helpers.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/lib/helpers.js b/test/lib/helpers.js index d1490100..282ac648 100644 --- a/test/lib/helpers.js +++ b/test/lib/helpers.js @@ -100,6 +100,12 @@ function compareGradientColors(color1, color2) { function cloneAndCompare(item) { var copy = item.clone(); + equals(function() { + return item._parent == copy._parent; + }, true); + equals(function() { + return item.nextSibling == copy; + }, true); compareItems(item, copy); // Remove the cloned item to restore the document: copy.remove();