aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/draggable/draggable_options.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2013-04-14 12:58:42 -0400
committerMike Sherov <mike.sherov@gmail.com>2013-04-14 12:58:42 -0400
commit7c939aadf8c661f1230627d51bf1450f99effcc3 (patch)
treef5d455a234771fcc939d83941abbdacfb298261d /tests/unit/draggable/draggable_options.js
parentd345a0d7db841a143dcfdd3fb6fa6141cda435e9 (diff)
downloadjquery-ui-7c939aadf8c661f1230627d51bf1450f99effcc3.tar.gz
jquery-ui-7c939aadf8c661f1230627d51bf1450f99effcc3.zip
Test Suite: Remove Flaky Datepicker test, and correct more old jQuery test cases for old Opera and old Safari.
Diffstat (limited to 'tests/unit/draggable/draggable_options.js')
-rw-r--r--tests/unit/draggable/draggable_options.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/unit/draggable/draggable_options.js b/tests/unit/draggable/draggable_options.js
index c361318b1..ef551003d 100644
--- a/tests/unit/draggable/draggable_options.js
+++ b/tests/unit/draggable/draggable_options.js
@@ -472,10 +472,15 @@ test( "#6889: Cursor doesn't revert to pre-dragging state after revert action wh
}),
expected = getCursor();
- element.simulate( "drag", {
- dx: -1,
- dy: -1
- });
+ if ( TestHelpers.draggable.unreliableContains ) {
+ ok( true, "Opera <12.14 and Safari <6.0 report wrong values for $.contains in jQuery < 1.8" );
+ ok( true, "Opera <12.14 and Safari <6.0 report wrong values for $.contains in jQuery < 1.8" );
+ } else {
+ element.simulate( "drag", {
+ dx: -1,
+ dy: -1
+ });
+ }
});
test( "cursor, default, switching after initialization", function() {