aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2013-04-07 12:17:19 -0400
committerScott González <scott.gonzalez@gmail.com>2013-04-17 15:24:21 -0400
commit0c02740fa7179afb08d57ffdbdcf7c6ec1de19be (patch)
tree54ed5cbab5f22b3b95b230820770517fb4351c0e /tests
parent17ce0a5cb0e6f85a73ca4b573217618271e6c3c8 (diff)
downloadjquery-ui-0c02740fa7179afb08d57ffdbdcf7c6ec1de19be.tar.gz
jquery-ui-0c02740fa7179afb08d57ffdbdcf7c6ec1de19be.zip
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 d4d9e14161d0f2cd64a441e4703c801b35fbc158)
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/draggable/draggable_core.js15
1 files changed, 10 insertions, 5 deletions
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() {