mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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:
parent
17ce0a5cb0
commit
0c02740fa7
@ -87,11 +87,16 @@ test( "#8269: Removing draggable element on drop", function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
element.simulate( "drag", {
|
// Support: Opera 12.10, Safari 5.1, jQuery <1.8
|
||||||
handle: "corner",
|
if ( TestHelpers.draggable.unreliableContains ) {
|
||||||
x: dropOffset.left,
|
ok( true, "Opera <12.14 and Safari <6.0 report wrong values for $.contains in jQuery < 1.8" );
|
||||||
y: dropOffset.top
|
} 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() {
|
test( "#6258: not following mouse when scrolled and using overflow-y: scroll", function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user