Skip to content
Permalink
Browse files

Draggable Tests: fix more old Safari and old Opera tests with jQuery …

…< 1.8 tests by accounting for a bug in $.contains on disconnected Elements.
  • Loading branch information
mikesherov committed Apr 7, 2013
1 parent 3c1a3ca commit d4d9e14161d0f2cd64a441e4703c801b35fbc158
Showing with 10 additions and 5 deletions.
  1. +10 −5 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() {

0 comments on commit d4d9e14

Please sign in to comment.
You can’t perform that action at this time.