]> source.dussan.org Git - jquery.git/commitdiff
Leave the opacity test unanchored in case of floating point rounding browser errors...
authortimmywil <timmywillisn@gmail.com>
Wed, 12 Oct 2011 02:37:52 +0000 (22:37 -0400)
committertimmywil <timmywillisn@gmail.com>
Wed, 12 Oct 2011 02:37:52 +0000 (22:37 -0400)
src/support.js
test/unit/queue.js

index e483ce09df3d3033e95f79459439e60ac74287c7..b407b32c1ee3621771b3e1146dc6fa53b8a35cd7 100644 (file)
@@ -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)
index 95bbfc97e1f91803cd9860897f0330c9c0739ead..6679bc6c2ab81f67ad9ef41d9447e1eb9e7211bb 100644 (file)
@@ -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 )