aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/effects.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-09-09 15:48:28 -0400
committerjeresig <jeresig@gmail.com>2010-09-09 15:48:28 -0400
commit70377a65e2a1c8478f3dc1e0e125b7b25b5324f3 (patch)
treeb168467bec8ef7d5a0903cb2fbb4e2e92fbd0103 /test/unit/effects.js
parenta166860a19a5d0de4529e4df4cb6647b3812577e (diff)
downloadjquery-70377a65e2a1c8478f3dc1e0e125b7b25b5324f3.tar.gz
jquery-70377a65e2a1c8478f3dc1e0e125b7b25b5324f3.zip
Make sure that effect tests no longer reference the old CSS methods.
Diffstat (limited to 'test/unit/effects.js')
-rw-r--r--test/unit/effects.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/effects.js b/test/unit/effects.js
index 919e3ea4c..9ff5014c8 100644
--- a/test/unit/effects.js
+++ b/test/unit/effects.js
@@ -480,7 +480,7 @@ jQuery.each( {
if ( t_h == "hide"||t_h == "show" )
equals(this.style.height.indexOf(f_h), 0, "Height must be reset to " + f_h + ": " + this.style.height);
- var cur_o = jQuery.style(this, "opacity");
+ var cur_o = jQuery.css(this, "opacity", undefined, true);
if ( cur_o !== "" ) cur_o = parseFloat( cur_o );
if ( t_o == "hide"||t_o == "show" )
@@ -492,7 +492,7 @@ jQuery.each( {
if ( t_o.constructor == Number ) {
equals(cur_o, t_o, "Final opacity should be " + t_o + ": " + cur_o);
- ok(jQuery.curCSS(this, "opacity") != "" || cur_o == t_o, "Opacity should be explicitly set to " + t_o + ", is instead: " + cur_o);
+ ok(jQuery.css(this, "opacity") != "" || cur_o == t_o, "Opacity should be explicitly set to " + t_o + ", is instead: " + cur_o);
}
if ( t_w.constructor == Number ) {
@@ -512,7 +512,7 @@ jQuery.each( {
}
if ( t_h == "show" ) {
- var old_h = jQuery.curCSS(this, "height");
+ var old_h = jQuery.css(this, "height");
jQuery(elem).append("<br/>Some more text<br/>and some more...");
ok(old_h != jQuery.css(this, "height" ), "Make sure height is auto.");
}