diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-02-28 13:34:49 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-02-28 13:34:49 -0500 |
commit | 6f2957743659387f66c9b8953bba9fac5617a440 (patch) | |
tree | a7fbc1571c8bab2ff25fa8b1981e7d42c732c54c /tests/unit/effects | |
parent | 0cf875e5e34e4b2c11802eb856190e6cca649bab (diff) | |
download | jquery-ui-6f2957743659387f66c9b8953bba9fac5617a440.tar.gz jquery-ui-6f2957743659387f66c9b8953bba9fac5617a440.zip |
Effects: Handle the .hide/show/toggle( options ) signatures from core properly. Fixes #9126 - .show()/.hide() do not support all of core's options.
Diffstat (limited to 'tests/unit/effects')
-rw-r--r-- | tests/unit/effects/effects.html | 2 | ||||
-rw-r--r-- | tests/unit/effects/effects_core.js | 18 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/unit/effects/effects.html b/tests/unit/effects/effects.html index 7ddacf7bb..4538ecb03 100644 --- a/tests/unit/effects/effects.html +++ b/tests/unit/effects/effects.html @@ -96,6 +96,8 @@ <h2 id="qunit-userAgent"></h2> <ol id="qunit-tests"></ol> <div id="qunit-fixture"> +<div id="elem" class="test"> +</div> <div class="hidden test"> <div>.</div> </div> diff --git a/tests/unit/effects/effects_core.js b/tests/unit/effects/effects_core.js index 928d4c15b..11e9d0b45 100644 --- a/tests/unit/effects/effects_core.js +++ b/tests/unit/effects/effects_core.js @@ -16,6 +16,24 @@ var minDuration = 15, module( "effects.core" ); +// TODO: test all signatures of .show(), .hide(), .toggle(). +// Look at core's signatures and UI's signatures. +asyncTest( ".hide() with step", function() { + expect( 1 ); + var element = $( "#elem" ), + step = function() { + ok( true, "step callback invoked" ); + step = $.noop; + }; + + element.hide({ + step: function() { + step(); + }, + complete: start + }); +}); + test( "Immediate Return Conditions", function() { var hidden = $( "div.hidden" ), count = 0; |