Skip to content

Commit 0b8b636

Browse files
committed
Fix effects test suite to account for opacity being removed rather than explicity set to 1
1 parent b22c904 commit 0b8b636

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/unit/effects.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,9 @@ jQuery.each( {
726726
var f_h = f( elem, "height" );
727727
var t_o = t( elem, "opacity" );
728728
var f_o = f( elem, "opacity" );
729+
if ( f_o === "" ) {
730+
f_o = 1;
731+
}
729732

730733
var num = 0;
731734

@@ -759,7 +762,7 @@ jQuery.each( {
759762
if ( t_h == "hide"||t_h == "show" )
760763
ok(f_h === "" ? elem.style.height === f_h : elem.style.height.indexOf(f_h) === 0, "Height must be reset to " + f_h + ": " + elem.style.height);
761764

762-
var cur_o = jQuery.style(elem, "opacity");
765+
var cur_o = jQuery.css(elem, "opacity");
763766

764767
if ( t_o == "hide" || t_o == "show" )
765768
equals(cur_o, f_o, "Opacity must be reset to " + f_o + ": " + cur_o);

0 commit comments

Comments
 (0)