diff options
Diffstat (limited to 'tests/unit/draggable/draggable_events.js')
-rw-r--r-- | tests/unit/draggable/draggable_events.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/draggable/draggable_events.js b/tests/unit/draggable/draggable_events.js index 2b2104ed4..65e8097a7 100644 --- a/tests/unit/draggable/draggable_events.js +++ b/tests/unit/draggable/draggable_events.js @@ -16,7 +16,7 @@ test("callbacks occurrence count", function() { stop: function() { stop++; } }); - drag(el, 10, 10); + TestHelpers.draggable.drag(el, 10, 10); equal(start, 1, "start callback should happen exactly once"); equal(dragc, 3, "drag callback should happen exactly once per mousemove"); @@ -35,7 +35,7 @@ test("stopping the start callback", function() { stop: function() { stop++; } }); - drag(el, 10, 10); + TestHelpers.draggable.drag(el, 10, 10); equal(start, 1, "start callback should happen exactly once"); equal(dragc, 0, "drag callback should not happen at all"); @@ -54,7 +54,7 @@ test("stopping the drag callback", function() { stop: function() { stop++; } }); - drag(el, 10, 10); + TestHelpers.draggable.drag(el, 10, 10); equal(start, 1, "start callback should happen exactly once"); equal(dragc, 1, "drag callback should happen exactly once"); @@ -71,7 +71,7 @@ test("stopping the stop callback", function() { stop: function() { return false; } }); - drag(el, 10, 10); + TestHelpers.draggable.drag(el, 10, 10); ok($("#draggable2").data('draggable').helper, "the clone should not be deleted if the stop callback is stopped"); |