aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Irish <paul.irish@gmail.com>2010-10-17 14:26:32 -0400
committerPaul Irish <paul.irish@gmail.com>2010-10-17 14:26:32 -0400
commit97dfa0d5a85a32fe56aba837bbf2bc889b092d2b (patch)
tree12354fb98231242e9af0f942965cf9e187e66207 /test
parent8a5df39045292397a06d08b4fab2ad29819b5d44 (diff)
downloadjquery-97dfa0d5a85a32fe56aba837bbf2bc889b092d2b.tar.gz
jquery-97dfa0d5a85a32fe56aba837bbf2bc889b092d2b.zip
fadeToggle(). as suggested by Karl Swedberg in his jQcon talk. patched live! omg
Diffstat (limited to 'test')
-rw-r--r--test/index.html3
-rw-r--r--test/unit/effects.js7
2 files changed, 10 insertions, 0 deletions
diff --git a/test/index.html b/test/index.html
index 03e1d9758..e66872725 100644
--- a/test/index.html
+++ b/test/index.html
@@ -259,6 +259,9 @@ Z</textarea>
<div id="slidetogglein" class='chain test'>slideToggleIn<div>slideToggleIn</div></div>
<div id="slidetoggleout" class='chain test out'>slideToggleOut<div>slideToggleOut</div></div>
+
+ <div id="fadetogglein" class='chain test'>fadeToggleIn<div>fadeToggleIn</div></div>
+ <div id="fadetoggleout" class='chain test out'>fadeToggleOut<div>fadeToggleOut</div></div>
<div id="fadeto" class='chain test'>fadeTo<div>fadeTo</div></div>
</div>
diff --git a/test/unit/effects.js b/test/unit/effects.js
index 6baa0f62d..952afc5b1 100644
--- a/test/unit/effects.js
+++ b/test/unit/effects.js
@@ -729,6 +729,13 @@ test("Chain slideToggle out", function() {
jQuery('#slidetoggleout div').saveState(jQuery.support.shrinkWrapBlocks).slideToggle('fast').slideToggle('fast',jQuery.checkState);
});
+test("Chain fadeToggle in", function() {
+ jQuery('#fadetogglein div').saveState().fadeToggle('fast').fadeToggle('fast',jQuery.checkState);
+});
+test("Chain fadeToggle out", function() {
+ jQuery('#fadetoggleout div').saveState().fadeToggle('fast').fadeToggle('fast',jQuery.checkState);
+});
+
test("Chain fadeTo 0.5 1.0 with easing and callback)", function() {
jQuery('#fadeto div').saveState().fadeTo('fast',0.5).fadeTo('fast',1.0,'linear',jQuery.checkState);
});