Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
puckey committed Mar 13, 2012
1 parent aaf4e6d commit dcb141e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions test/tests/Item_Order.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ test('Item#moveAbove(item) / Item#moveBelow(item)', function() {
command();
equals(function() {
return item0.index;
}, indexes[0]);
}, indexes[0], command.toString());
equals(function() {
return item1.index;
}, indexes[1]);
Expand All @@ -84,13 +84,14 @@ test('Item#moveAbove(item) / Item#moveBelow(item)', function() {
testMove(function() { item1.moveBelow(item0) }, [1,0,2]);
testMove(function() { item1.moveBelow(item1) }, [0,1,2]);
testMove(function() { item1.moveBelow(item2) }, [0,1,2]);
testMove(function() { item2.moveBelow(item0) }, [2,0,1]);

testMove(function() { item2.moveBelow(item0) }, [1,2,0]);
testMove(function() { item2.moveBelow(item1) }, [0,2,1]);
testMove(function() { item2.moveBelow(item2) }, [0,1,2]);

testMove(function() { item0.moveAbove(item0) }, [0,1,2]);
testMove(function() { item0.moveAbove(item1) }, [1,0,2]);
testMove(function() { item0.moveAbove(item2) }, [1,2,0]);
testMove(function() { item0.moveAbove(item2) }, [2,0,1]);
testMove(function() { item1.moveAbove(item0) }, [0,1,2]);
testMove(function() { item1.moveAbove(item1) }, [0,1,2]);
testMove(function() { item1.moveAbove(item2) }, [0,2,1]);
Expand Down
2 changes: 1 addition & 1 deletion test/tests/Layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ test('insertAbove / insertBelow', function() {
// move the layer above the path, inside the firstLayer:
secondLayer.insertAbove(path);
equals(function() {
return secondLayer.previousSibling == path;
return secondLayer.nextSibling == path;
}, true);
equals(function() {
return secondLayer.parent == firstLayer;
Expand Down

0 comments on commit dcb141e

Please sign in to comment.