aboutsummaryrefslogtreecommitdiffstats
path: root/tests/sortable.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sortable.js')
-rw-r--r--tests/sortable.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/sortable.js b/tests/sortable.js
index 95fd9cbfd..c9da3b729 100644
--- a/tests/sortable.js
+++ b/tests/sortable.js
@@ -122,5 +122,17 @@ test("defaults", function() {
});
+test("#3019: Stop fires too early", function() {
+
+ var helper = null;
+ el = $("#sortable").sortable({ stop: function(e, ui) {
+ helper = ui.helper;
+ }});
+
+ sort($("li", el)[0], 0, 40, 2, 'Dragging the sortable');
+ equals(helper, null, "helper should be false");
+
+});
+
})(jQuery);