Adding unit tests for #8403
This commit is contained in:
parent
025f2c63e4
commit
c6b891fb1c
|
@ -1,5 +1,5 @@
|
||||||
/* for testing opacity set in styles in IE */
|
/* for testing opacity set in styles in IE */
|
||||||
ol#empty { opacity: 0; filter:Alpha(opacity=0); }
|
ol#empty { opacity: 0; filter:Alpha(opacity=0) progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffff0000', EndColorStr='#ffffffff'); }
|
||||||
|
|
||||||
div#fx-tests h4 {
|
div#fx-tests h4 {
|
||||||
background: red;
|
background: red;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
module("css", { teardown: moduleTeardown });
|
module("css", { teardown: moduleTeardown });
|
||||||
|
|
||||||
test("css(String|Hash)", function() {
|
test("css(String|Hash)", function() {
|
||||||
expect(41);
|
expect(42);
|
||||||
|
|
||||||
equals( jQuery('#main').css("display"), 'block', 'Check for css property "display"');
|
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" );
|
equals( jQuery('#empty').css('opacity'), '0', "Assert opacity is accessible via filter property set in stylesheet in IE" );
|
||||||
jQuery('#empty').css({ opacity: '1' });
|
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" );
|
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');
|
var div = jQuery('#nothiddendiv'), child = jQuery('#nothiddendivchild');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue