From ba6fd314abb3663e880144ca0e3ea5758a5edd4c Mon Sep 17 00:00:00 2001 From: Alexander Valchev Date: Thu, 8 Oct 2015 16:21:26 +0300 Subject: [PATCH] Re-arrange similar tests under each other --- tests/virtuallist/api.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/tests/virtuallist/api.js b/tests/virtuallist/api.js index 95dc16b307c..67f1d69d981 100644 --- a/tests/virtuallist/api.js +++ b/tests/virtuallist/api.js @@ -208,6 +208,23 @@ asyncDataSource.read(); }); + asyncTest("listBound event is fired after all values are prefetched (multi selection)", 3, function() { + var virtualList = new VirtualList(container, $.extend(virtualSettings, { + selectable: "multiple", + valueMapper: function(o) { + o.success([7, 256]); + }, + value: [7, 256], + listBound: function() { + start(); + equal(virtualList.value().length, 2); + equal(virtualList.select().length, 2); + equal(virtualList.selectedDataItems().length, 2); + } + })); + asyncDataSource.read(); + }); + asyncTest("listBound event is fired when range is changed", 3, function() { var virtualList = new VirtualList(container, $.extend(virtualSettings, { selectable: true, @@ -231,23 +248,6 @@ }); }); - asyncTest("listBound event is fired after all values are prefetched (multi selection)", 3, function() { - var virtualList = new VirtualList(container, $.extend(virtualSettings, { - selectable: "multiple", - valueMapper: function(o) { - o.success([7, 256]); - }, - value: [7, 256], - listBound: function() { - start(); - equal(virtualList.value().length, 2); - equal(virtualList.select().length, 2); - equal(virtualList.selectedDataItems().length, 2); - } - })); - asyncDataSource.read(); - }); - asyncTest("fires the activate event", 1, function() { var virtualList = new VirtualList(container, $.extend(virtualSettings, { activate: function() {