aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/effects
diff options
context:
space:
mode:
authorgnarf <gnarf@gnarf.net>2011-05-12 11:13:25 -0500
committerScott González <scott.gonzalez@gmail.com>2011-05-12 21:09:37 -0400
commitc08cf8ec6cc9c420173afda79b55c6c32ab89beb (patch)
tree7dc13b82a27d0f4f3e8347da5db3b06002abcf81 /tests/unit/effects
parent75500182608b1127a597a426df2d10e51b5c275d (diff)
downloadjquery-ui-c08cf8ec6cc9c420173afda79b55c6c32ab89beb.tar.gz
jquery-ui-c08cf8ec6cc9c420173afda79b55c6c32ab89beb.zip
Unit Tests: adding unit test for #7356
Diffstat (limited to 'tests/unit/effects')
-rw-r--r--tests/unit/effects/effects_core.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/unit/effects/effects_core.js b/tests/unit/effects/effects_core.js
index 228b6a79c..044cc1695 100644
--- a/tests/unit/effects/effects_core.js
+++ b/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);