aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorlouisremi <louisremi@louisremi-laptop.(none)>2011-03-07 14:43:08 +0100
committerlouisremi <louisremi@louisremi-laptop.(none)>2011-03-07 14:43:08 +0100
commitc6b891fb1c909a2791ba7a4d745940858bd7b94f (patch)
tree89e7e954198d94b34061682ccdebc8db7e7db6ed /test/unit
parent025f2c63e487e069215b2a03ded2b98198904af9 (diff)
downloadjquery-c6b891fb1c909a2791ba7a4d745940858bd7b94f.tar.gz
jquery-c6b891fb1c909a2791ba7a4d745940858bd7b94f.zip
Adding unit tests for #8403
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/css.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index 555f13575..874661879 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(41);
+ expect(42);
equals( jQuery('#main').css("display"), 'block', 'Check for css property "display"');
@@ -58,6 +58,7 @@ 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" );
var div = jQuery('#nothiddendiv'), child = jQuery('#nothiddendivchild');