Skip to content
Permalink
Browse files

Unit Tests: adding unit test for #7356

  • Loading branch information...
gnarf authored and scottgonzalez committed May 12, 2011
1 parent 7550018 commit c08cf8ec6cc9c420173afda79b55c6c32ab89beb
Showing with 20 additions and 0 deletions.
  1. +20 −0 tests/unit/effects/effects_core.js
@@ -80,4 +80,24 @@ asyncTest( "animateClass works with colors", function() {
}, 50);
});

asyncTest( "animateClass works with children", function() {
var test = $("div.animateClass"),
h2 = test.find("h2");

expect(4);
test.toggleClass("testChildren", { children: true, duration: 100, complete: function() {
equal( h2.css("fontSize"), "20px", "Text size is final during complete");
test.toggleClass("testChildren", 100, function() {
equal( h2.css("fontSize"), "10px", "Text size revertted after class removed");
start();
});
setTimeout(function() {
equal( h2.css("fontSize"), "20px", "Text size unchanged with children: undefined" );
}, 50);
}});
setTimeout(function() {
notPresent( h2.css("fontSize"), ["10px","20px"], "Font size is neither endpoint when in middle.");
}, 50);
});

})(jQuery);

0 comments on commit c08cf8e

Please sign in to comment.
You can’t perform that action at this time.