From a96ff1c3a864cee27ac3014b63b7054bb938c30d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski?= Date: Thu, 13 Feb 2014 16:13:15 -0800 Subject: [PATCH] Effects: Don't check fill-opacity in Android 2.3, it's not supported (cherry-picked from 70ac4485f30633074696fa28ca29b0325459f228) --- test/unit/effects.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/unit/effects.js b/test/unit/effects.js index 4e94df72a..2c9cb13c4 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -1408,7 +1408,12 @@ test("Do not append px to 'fill-opacity' #9548", 1, function() { var $div = jQuery("
").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(); }); });