Skip to content
Permalink
Browse files

Reorganized some of the animation tests to work with the new hide/sho…

…w changes.
  • Loading branch information
jeresig committed Feb 17, 2009
1 parent 7b5cfb7 commit f89f5eb61f6b19cc2204ddbe2abc797f7ee14cfd
Showing with 23 additions and 22 deletions.
  1. +21 −20 test/index.html
  2. +1 −1 test/unit/core.js
  3. +1 −1 test/unit/fx.js
@@ -122,26 +122,6 @@ <h2 id="userAgent"></h2>
<input name="types[]" id="types_movie" type="checkbox" value="movie" />
</form>

<div id="fx-queue" name="test">
<div id="fadein" class='chain test' name='div'>fadeIn<div>fadeIn</div></div>
<div id="fadeout" class='chain test out'>fadeOut<div>fadeOut</div></div>

<div id="show" class='chain test'>show<div>show</div></div>
<div id="hide" class='chain test out'>hide<div>hide</div></div>

<div id="togglein" class='chain test'>togglein<div>togglein</div></div>
<div id="toggleout" class='chain test out'>toggleout<div>toggleout</div></div>


<div id="slideup" class='chain test'>slideUp<div>slideUp</div></div>
<div id="slidedown" class='chain test out'>slideDown<div>slideDown</div></div>

<div id="slidetogglein" class='chain test'>slideToggleIn<div>slideToggleIn</div></div>
<div id="slidetoggleout" class='chain test out'>slideToggleOut<div>slideToggleOut</div></div>
</div>

<div id="fx-tests"></div>

<form id="testForm" action="#" method="get">
<textarea name="T3" rows="2" cols="15">?
Z</textarea>
@@ -221,6 +201,27 @@ <h2 id="userAgent"></h2>
</div>
</div>
</dl>
<div id="fx-test-group" style="width:1px;height:1px;overflow:hidden;">
<div id="fx-queue" name="test">
<div id="fadein" class='chain test' name='div'>fadeIn<div>fadeIn</div></div>
<div id="fadeout" class='chain test out'>fadeOut<div>fadeOut</div></div>

<div id="show" class='chain test'>show<div>show</div></div>
<div id="hide" class='chain test out'>hide<div>hide</div></div>

<div id="togglein" class='chain test'>togglein<div>togglein</div></div>
<div id="toggleout" class='chain test out'>toggleout<div>toggleout</div></div>


<div id="slideup" class='chain test'>slideUp<div>slideUp</div></div>
<div id="slidedown" class='chain test out'>slideDown<div>slideDown</div></div>

<div id="slidetogglein" class='chain test'>slideToggleIn<div>slideToggleIn</div></div>
<div id="slidetoggleout" class='chain test out'>slideToggleOut<div>slideToggleOut</div></div>
</div>

<div id="fx-tests"></div>
</div>

<ol id="tests"></ol>
</body>
@@ -1441,7 +1441,7 @@ test("closest()", function() {
isSet( jQuery("#main").closest("span,#html").get(), q("html"), "closest(span,#html)" );

isSet( jQuery("div:eq(1)").closest("div:first").get(), [], "closest(div:first)" );
isSet( jQuery("div").closest("body:first div:last").get(), q("liveHandlerOrder"), "closest(body:first div:last)" );
isSet( jQuery("div").closest("body:first div:last").get(), q("fx-tests"), "closest(body:first div:last)" );
});

test("not()", function() {
@@ -184,7 +184,7 @@ test("stop(clearQueue, gotoEnd)", function() {

test("toggle()", function() {
expect(6);
var x = jQuery("#foo");
var x = jQuery("#nothiddendiv");
ok( x.is(":visible"), "is visible" );
x.toggle();
ok( x.is(":hidden"), "is hidden" );

0 comments on commit f89f5eb

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