aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/fx.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/fx.js')
-rw-r--r--test/unit/fx.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/unit/fx.js b/test/unit/fx.js
index 1204e261c..481b17222 100644
--- a/test/unit/fx.js
+++ b/test/unit/fx.js
@@ -1,12 +1,17 @@
module("fx");
test("animate(Hash, Object, Function)", function() {
- expect(1);
+ expect(3);
stop();
var hash = {opacity: 'show'};
var hashCopy = $.extend({}, hash);
$('#foo').animate(hash, 0, function() {
ok( hash.opacity == hashCopy.opacity, 'Check if animate changed the hash parameter' );
+ });
+ // using contents will get comments regular, text, and comment nodes
+ $("#nonnodes").contents().animate({paddingLeft:"5px"}, 100, function () {
+ equals(this.nodeType, 1, "Check node,textnode,comment animate just does real nodes" );
+ equals($(this).css("paddingLeft"), "5px", "Check node,textnode,comment animate just does real nodes" );
start();
});
});