aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/css.js
diff options
context:
space:
mode:
authorlouisremi <louisremi@louisremi-laptop.(none)>2011-04-11 21:05:15 +0200
committerlouisremi <louisremi@louisremi-laptop.(none)>2011-04-11 21:05:15 +0200
commit6ddc3816dd23fd0d3b9328b2cb4648589884a206 (patch)
tree249a77bd8763c03ac8ecabc810ee62f119e17d43 /test/unit/css.js
parentc6b891fb1c909a2791ba7a4d745940858bd7b94f (diff)
downloadjquery-6ddc3816dd23fd0d3b9328b2cb4648589884a206.tar.gz
jquery-6ddc3816dd23fd0d3b9328b2cb4648589884a206.zip
limit this test to browsers not supporting opacity
Diffstat (limited to 'test/unit/css.js')
-rw-r--r--test/unit/css.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index 874661879..c85f432f2 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -1,7 +1,7 @@
module("css", { teardown: moduleTeardown });
test("css(String|Hash)", function() {
- expect(42);
+ expect( jQuery.support.opacity ? 41 : 42 );
equals( jQuery('#main').css("display"), 'block', 'Check for css property "display"');
@@ -58,7 +58,9 @@ test("css(String|Hash)", function() {
equals( jQuery('#empty').css('opacity'), '0', "Assert opacity is accessible via filter property set in stylesheet in IE" );
jQuery('#empty').css({ opacity: '1' });
equals( jQuery('#empty').css('opacity'), '1', "Assert opacity is taken from style attribute when set vs stylesheet in IE with filters" );
- ok( ~jQuery('#empty')[0].currentStyle.filter.indexOf('gradient'), "Assert setting opacity doesn't overwrite other filters of the stylesheet in IE" );
+ if ( !jQuery.support.opacity ) {
+ ok( ~jQuery('#empty')[0].currentStyle.filter.indexOf('gradient'), "Assert setting opacity doesn't overwrite other filters of the stylesheet in IE" );
+ }
var div = jQuery('#nothiddendiv'), child = jQuery('#nothiddendivchild');