]> source.dussan.org Git - jquery-ui.git/commitdiff
Draggable Tests: fix more old Safari and old Opera tests with jQuery < 1.8 tests...
authorMike Sherov <mike.sherov@gmail.com>
Sun, 7 Apr 2013 16:17:19 +0000 (12:17 -0400)
committerMike Sherov <mike.sherov@gmail.com>
Sun, 7 Apr 2013 16:17:19 +0000 (12:17 -0400)
tests/unit/draggable/draggable_core.js

index 88b9c3f2359f6348cc46db47442138ac5c73dd5b..53703843d84f2c5ad0d8208b8d4f1bc1ceba9614 100644 (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() {