From 8fb4d9af74d61e4bc55e615a21115c48bf5f65d9 Mon Sep 17 00:00:00 2001 From: jeresig Date: Wed, 13 Oct 2010 00:42:05 -0400 Subject: [PATCH] We want to make sure that we only run the MSIE-specific filter tests if opacity is explicitly not supported. --- test/unit/css.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/css.js b/test/unit/css.js index ecf36a913..b6063b70c 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -138,14 +138,14 @@ test("css(String, Object)", function() { ok( success, "Setting RGBA values does not throw Error" ); }); -if(jQuery.browser.msie) { +if ( !jQuery.support.opacity ) { test("css(String, Object) for MSIE", function() { // for #1438, IE throws JS error when filter exists but doesn't have opacity in it jQuery('#foo').css("filter", "progid:DXImageTransform.Microsoft.Chroma(color='red');"); equals( jQuery('#foo').css('opacity'), '1', "Assert opacity is 1 when a different filter is set in IE, #1438" ); var filterVal = "progid:DXImageTransform.Microsoft.Alpha(opacity=30) progid:DXImageTransform.Microsoft.Blur(pixelradius=5)"; - var filterVal2 = "progid:DXImageTransform.Microsoft.Alpha(opacity=100) progid:DXImageTransform.Microsoft.Blur(pixelradius=5)"; + var filterVal2 = "progid:DXImageTransform.Microsoft.alpha(opacity=100) progid:DXImageTransform.Microsoft.Blur(pixelradius=5)"; var filterVal3 = "progid:DXImageTransform.Microsoft.Blur(pixelradius=5)"; jQuery('#foo').css("filter", filterVal); equals( jQuery('#foo').css("filter"), filterVal, "css('filter', val) works" ); -- 2.39.5