mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix effects test suite to account for opacity being removed rather than explicity set to 1
This commit is contained in:
parent
b22c904652
commit
0b8b636012
5
test/unit/effects.js
vendored
5
test/unit/effects.js
vendored
@ -726,6 +726,9 @@ jQuery.each( {
|
|||||||
var f_h = f( elem, "height" );
|
var f_h = f( elem, "height" );
|
||||||
var t_o = t( elem, "opacity" );
|
var t_o = t( elem, "opacity" );
|
||||||
var f_o = f( elem, "opacity" );
|
var f_o = f( elem, "opacity" );
|
||||||
|
if ( f_o === "" ) {
|
||||||
|
f_o = 1;
|
||||||
|
}
|
||||||
|
|
||||||
var num = 0;
|
var num = 0;
|
||||||
|
|
||||||
@ -759,7 +762,7 @@ jQuery.each( {
|
|||||||
if ( t_h == "hide"||t_h == "show" )
|
if ( t_h == "hide"||t_h == "show" )
|
||||||
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);
|
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);
|
||||||
|
|
||||||
var cur_o = jQuery.style(elem, "opacity");
|
var cur_o = jQuery.css(elem, "opacity");
|
||||||
|
|
||||||
if ( t_o == "hide" || t_o == "show" )
|
if ( t_o == "hide" || t_o == "show" )
|
||||||
equals(cur_o, f_o, "Opacity must be reset to " + f_o + ": " + cur_o);
|
equals(cur_o, f_o, "Opacity must be reset to " + f_o + ": " + cur_o);
|
||||||
|
Loading…
Reference in New Issue
Block a user