Leave the opacity test unanchored in case of floating point rounding browser errors; small fix in queue tests. Fixes #5145.

This commit is contained in:
timmywil 2011-10-11 22:37:52 -04:00
parent 6c4ca13d69
commit a18645c6f8
2 changed files with 3 additions and 3 deletions

View 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)

View 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 )