aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/effects.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-09-16 10:00:56 -0400
committerjeresig <jeresig@gmail.com>2010-09-16 10:00:56 -0400
commit37b607d2815b893d13de4ac3461090d0dd46535e (patch)
tree47b4f5dd980cd0ae20eb7dc6820672f45437e78d /test/unit/effects.js
parent2131e1a7ad6d9df239ec00b301303e10dbd34d49 (diff)
downloadjquery-37b607d2815b893d13de4ac3461090d0dd46535e.tar.gz
jquery-37b607d2815b893d13de4ac3461090d0dd46535e.zip
Split apart jQuery.css into jQuery.css (computed values) and jQuery.style (currently set values).
Diffstat (limited to 'test/unit/effects.js')
-rw-r--r--test/unit/effects.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/effects.js b/test/unit/effects.js
index bfd6ff4fc..6129d5d31 100644
--- a/test/unit/effects.js
+++ b/test/unit/effects.js
@@ -512,9 +512,9 @@ jQuery.each( {
}
if ( t_h == "show" ) {
- var old_h = jQuery.css(this, "height", undefined, true);
+ var old_h = jQuery.css(this, "height");
jQuery(this).append("<br/>Some more text<br/>and some more...");
- notEqual(jQuery.css(this, "height", undefined, true), old_h, "Make sure height is auto.");
+ notEqual(jQuery.css(this, "height"), old_h, "Make sure height is auto.");
}
start();
@@ -532,7 +532,7 @@ jQuery.fn.saveState = function(){
var self = this;
self.save = {};
jQuery.each(check, function(i,c){
- self.save[c] = jQuery.css(self,c);
+ self.save[c] = self.style[ c ] || jQuery.css(self,c);
});
});
};
@@ -540,8 +540,8 @@ jQuery.fn.saveState = function(){
jQuery.checkState = function(){
var self = this;
jQuery.each(this.save, function(c,v){
- var cur = jQuery.css(self,c);
- equals( v, cur, "Make sure that " + c + " is reset (Old: " + v + " Cur: " + cur + ")");
+ var cur = self.style[ c ] || jQuery.css(self, c);
+ equals( cur, v, "Make sure that " + c + " is reset (Old: " + v + " Cur: " + cur + ")");
});
start();
}