aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/draggable/draggable_test_helpers.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2013-10-31 21:41:45 -0400
committerMike Sherov <mike.sherov@gmail.com>2013-10-31 21:41:45 -0400
commit1f724adb15f5f56802e74dbb838738371f8ae351 (patch)
treee8dd65132b073d67247ce19a2e1488e43a613bb1 /tests/unit/draggable/draggable_test_helpers.js
parentffab89e9bee97cf7cc74249b6e4ce9dd798013c9 (diff)
downloadjquery-ui-1f724adb15f5f56802e74dbb838738371f8ae351.tar.gz
jquery-ui-1f724adb15f5f56802e74dbb838738371f8ae351.zip
Draggable Tests: don't test auto scroll while testing helpers.
Diffstat (limited to 'tests/unit/draggable/draggable_test_helpers.js')
-rw-r--r--tests/unit/draggable/draggable_test_helpers.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/unit/draggable/draggable_test_helpers.js b/tests/unit/draggable/draggable_test_helpers.js
index 928e87f26..0b533a4e1 100644
--- a/tests/unit/draggable/draggable_test_helpers.js
+++ b/tests/unit/draggable/draggable_test_helpers.js
@@ -30,10 +30,7 @@ TestHelpers.draggable = {
$( handle ).simulate( "drag", {
dx: dx,
- dy: dy,
- // moves is 1 here because simulate currently fire events synchronously
- // so we can't faithfully test things that rely on a scroll event (which is async)
- moves: 1
+ dy: dy
});
},
shouldMovePositionButNotOffset: function( el, msg, handle ) {
@@ -43,10 +40,7 @@ TestHelpers.draggable = {
$( handle ).simulate( "drag", {
dx: 100,
- dy: 100,
- // moves is 1 here because simulate currently fire events synchronously
- // so we can't faithfully test things that rely on a scroll event (which is async)
- moves: 1
+ dy: 100
});
},
shouldMove: function( el, msg, handle ) {