Tests: cloneAndCompare: compare item._parent and item.nextSibling.

This commit is contained in:
Jonathan Puckey 2011-05-21 12:46:21 +02:00
parent 6bfec35a2e
commit b579b9c96c

View file

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