From a18645c6f8f5d8d84c4d47c7137683ac7b4098cc Mon Sep 17 00:00:00 2001 From: timmywil Date: Tue, 11 Oct 2011 22:37:52 -0400 Subject: [PATCH] Leave the opacity test unanchored in case of floating point rounding browser errors; small fix in queue tests. Fixes #5145. --- src/support.js | 2 +- test/unit/queue.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/support.js b/src/support.js index e483ce09d..b407b32c1 100644 --- a/src/support.js +++ b/src/support.js @@ -64,7 +64,7 @@ jQuery.support = (function() { // Make sure that element opacity exists // (IE uses filter instead) // Use a regex to work around a WebKit issue. See #5145 - opacity: /^0.55$/.test( a.style.opacity ), + opacity: /^0.55/.test( a.style.opacity ), // Verify style float existence // (IE uses styleFloat instead of cssFloat) diff --git a/test/unit/queue.js b/test/unit/queue.js index 95bbfc97e..6679bc6c2 100644 --- a/test/unit/queue.js +++ b/test/unit/queue.js @@ -149,8 +149,8 @@ test("delay() can be stopped", function() { }) .dequeue( "alternate" ) - // stop( false ) will NOT clear the queue, so it should automatically dequeue the next - .stop( false, false, "alternate" ) + // stop( "alternate", false ) will NOT clear the queue, so it should automatically dequeue the next + .stop( "alternate", false, false ) // this test .delay( 100 )