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.(cherry picked from commit d4d9e14161)

This commit is contained in:
Mike Sherov 2013-04-07 12:17:19 -04:00 committed by Scott González
parent 17ce0a5cb0
commit 0c02740fa7

View File

@ -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() {