From 70ac4485f30633074696fa28ca29b0325459f228 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:12:06 -0800 Subject: [PATCH] Effects: Don't check fill-opacity in Android 2.3, it's not supported --- 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 ba63a3b00..0762361cb 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -1357,7 +1357,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(); }); });