diff options
author | gnarf <gnarf@gnarf.net> | 2011-03-06 15:24:48 -0600 |
---|---|---|
committer | gnarf <gnarf@gnarf.net> | 2011-03-06 15:24:48 -0600 |
commit | 8ce879e51be564bc9eb906295fd04069ce90a5bc (patch) | |
tree | 322a418daa8058e2327b0fb71cbed09326abb6df /tests | |
parent | bcb8f7ed9aee8ecb0ad5144204f6c7083949b3a7 (diff) | |
download | jquery-ui-8ce879e51be564bc9eb906295fd04069ce90a5bc.tar.gz jquery-ui-8ce879e51be564bc9eb906295fd04069ce90a5bc.zip |
Adding fade to the tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/visual/effects.all.html | 7 | ||||
-rw-r--r-- | tests/visual/effects.all.js | 8 |
2 files changed, 12 insertions, 3 deletions
diff --git a/tests/visual/effects.all.html b/tests/visual/effects.all.html index 074ebcca6..392ed6256 100644 --- a/tests/visual/effects.all.html +++ b/tests/visual/effects.all.html @@ -11,6 +11,7 @@ <script type="text/javascript" src="../../ui/jquery.effects.clip.js"></script> <script type="text/javascript" src="../../ui/jquery.effects.drop.js"></script> <script type="text/javascript" src="../../ui/jquery.effects.explode.js"></script> + <script type="text/javascript" src="../../ui/jquery.effects.fade.js"></script> <script type="text/javascript" src="../../ui/jquery.effects.fold.js"></script> <script type="text/javascript" src="../../ui/jquery.effects.highlight.js"></script> <script type="text/javascript" src="../../ui/jquery.effects.pulsate.js"></script> @@ -91,6 +92,12 @@ </li> <li> + <div class="effect" id="fade"> + <p>Fade</p> + </div> + </li> + + <li> <div class="effect" id="fold"> <p>Fold</p> </div> diff --git a/tests/visual/effects.all.js b/tests/visual/effects.all.js index b11c13183..5e47a4f48 100644 --- a/tests/visual/effects.all.js +++ b/tests/visual/effects.all.js @@ -49,6 +49,8 @@ $(function() { effect("#explode9", "explode", {}); effect("#explode36", "explode", { pieces: 36 }); + effect("#fade", "fade", {}); + effect("#fold", "fold", { size: 50 }); effect("#highlight", "highlight", {}); @@ -71,7 +73,7 @@ $(function() { $(this).addClass(function() { window.console && console.log(arguments); return "current"; - }, 1000, function() { + }, duration, function() { $(this).removeClass("current"); }); }); @@ -79,12 +81,12 @@ $(function() { $(this).addClass("current").removeClass(function() { window.console && console.log(arguments); return "current" - }, 1000); + }, duration); }); $("#toggleClass").click(function() { $(this).toggleClass(function() { window.console && console.log(arguments); return "current" - }, 1000); + }, duration); }); }); |