diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-30 01:36:20 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-30 01:36:20 +0200 |
commit | 294333e41fee406d1493cf858734fc370aa70010 (patch) | |
tree | 7bf3d58c1cf6af74502dbe30a545c5f299a3de83 /tests/js/menuTests.js | |
parent | a248adbd25c4cafd51c72893947a5b56be44c493 (diff) |
added drag and drop
Diffstat (limited to 'tests/js/menuTests.js')
-rw-r--r-- | tests/js/menuTests.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/js/menuTests.js b/tests/js/menuTests.js index 5aa8a4dc2..f2b7e8a09 100644 --- a/tests/js/menuTests.js +++ b/tests/js/menuTests.js @@ -158,7 +158,7 @@ test('Adding a new node should create the correct dom', function(){ test('Removing a feed node should remove the correct dom', function(){ equal(NewsTests.$popMenuDomElem.children().length, 3); - var child = NewsTests.popMenu.removeNode(News.MenuNodeType.Feed, 2); + var child = NewsTests.popMenu.removeNode(News.MenuNodeType.Feed, 2, true); ok(child !== undefined); // top length should stay the same @@ -170,7 +170,7 @@ test('Removing a feed node should remove the correct dom', function(){ }); test('Removing a non existent node should not change anything', function(){ - var child = NewsTests.popMenu.removeNode(News.MenuNodeType.Feed, 12); + var child = NewsTests.popMenu.removeNode(News.MenuNodeType.Feed, 12, true); ok(child === undefined); // top length should stay the same @@ -181,7 +181,7 @@ test('Removing a non existent node should not change anything', function(){ }); test('Removing a parent node should remove its children', function(){ - var child = NewsTests.popMenu.removeNode(News.MenuNodeType.Folder, 1); + var child = NewsTests.popMenu.removeNode(News.MenuNodeType.Folder, 1, true); ok(child !== undefined); equal(NewsTests.$popMenuDomElem.children().length, 2); equal(NewsTests.popMenu._children.length, 2); |