aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/droppable/droppable_options.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/unit/droppable/droppable_options.js b/tests/unit/droppable/droppable_options.js
index 0971f1377..9bfa25881 100644
--- a/tests/unit/droppable/droppable_options.js
+++ b/tests/unit/droppable/droppable_options.js
@@ -96,7 +96,7 @@ test( "tolerance, intersect", function() {
*/
test( "tolerance, pointer", function() {
- expect( 2 );
+ expect( 3 );
var draggable, droppable,
dataset = [
@@ -132,6 +132,19 @@ test( "tolerance, pointer", function() {
dy: ( data[ 1 ] - $( draggable ).position().top )
});
});
+
+ // http://bugs.jqueryui.com/ticket/4977 - tolerance, pointer - bug when pointer outside draggable
+ draggable.css({ top: 0, left: 0 }).draggable( "option", "axis", "x" );
+ droppable.css({ top: 15, left: 15 });
+
+ droppable.unbind( "drop" ).bind( "drop", function() {
+ ok( true, "drop fires as long as pointer is within droppable" );
+ });
+
+ $( draggable ).simulate( "drag", {
+ dx: 10,
+ dy: 10
+ });
});
/*