diff --git a/tests/unit/draggable/draggable_core.js b/tests/unit/draggable/draggable_core.js index 88b9c3f23..53703843d 100644 --- a/tests/unit/draggable/draggable_core.js +++ b/tests/unit/draggable/draggable_core.js @@ -87,11 +87,16 @@ test( "#8269: Removing draggable element on drop", function() { } }); - element.simulate( "drag", { - handle: "corner", - x: dropOffset.left, - y: dropOffset.top - }); + // Support: Opera 12.10, Safari 5.1, jQuery <1.8 + if ( TestHelpers.draggable.unreliableContains ) { + ok( true, "Opera <12.14 and Safari <6.0 report wrong values for $.contains in jQuery < 1.8" ); + } else { + element.simulate( "drag", { + handle: "corner", + x: dropOffset.left, + y: dropOffset.top + }); + } }); test( "#6258: not following mouse when scrolled and using overflow-y: scroll", function() {