]> source.dussan.org Git - jquery.git/commitdiff
Effects: Don't check fill-opacity in Android 2.3, it's not supported
authorMichał Gołębiowski <m.goleb@gmail.com>
Fri, 14 Feb 2014 00:12:06 +0000 (16:12 -0800)
committerMichał Gołębiowski <m.goleb@gmail.com>
Fri, 14 Feb 2014 00:12:06 +0000 (16:12 -0800)
test/unit/effects.js

index ba63a3b00b5ec70ffb4ec1dea826f34b67264657..0762361cbe8669e9703712695cf5dd47842d862f 100644 (file)
@@ -1357,7 +1357,12 @@ test("Do not append px to 'fill-opacity' #9548", 1, function() {
        var $div = jQuery("<div>").appendTo("#qunit-fixture");
 
        $div.css("fill-opacity", 0).animate({ "fill-opacity": 1.0 }, 0, function () {
-               equal( jQuery(this).css("fill-opacity"), 1, "Do not append px to 'fill-opacity'");
+               // Support: Android 2.3 (no support for fill-opacity)
+               if ( jQuery( this ).css( "fill-opacity" ) ) {
+                       equal( jQuery( this ).css( "fill-opacity" ), 1, "Do not append px to 'fill-opacity'" );
+               } else {
+                       ok( true, "No support for fill-opacity CSS property" );
+               }
                $div.remove();
        });
 });