Skip to content

Commit

Permalink
No ticket: fix effects test failure in IE6. Close jquerygh-1012.
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle authored and gibson042 committed Oct 31, 2012
1 parent e8f9151 commit 6e75fe5
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 22 deletions.
36 changes: 29 additions & 7 deletions test/data/testsuite.css
@@ -1,5 +1,8 @@
/* for testing opacity set in styles in IE */ /* for testing opacity set in styles in IE */
ol#empty { opacity: 0; filter:Alpha(opacity=0) progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffff0000', EndColorStr='#ffffffff'); } ol#empty {
opacity: 0;
filter:Alpha(opacity=0) progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffff0000', EndColorStr='#ffffffff');
}


div#fx-tests h4 { div#fx-tests h4 {
background: red; background: red;
Expand Down Expand Up @@ -93,14 +96,33 @@ div#fx-tests div.noback {
background-image: none; background-image: none;
} }


div.chain, div.chain div { width: 100px; height: 20px; position: relative; float: left; } .chain-test,
div.chain div { position: absolute; top: 0px; left: 0px; } .chain-test div {
width: 100px;
height: 20px;
position: relative;
float: left;
}
.chain-test div {
position: absolute;
top: 0;
left: 0;
}


div.chain.test { background: red; } .chain-test {
div.chain.test div { background: green; } background: red;
}
.chain-test div {
background: green;
}


div.chain.out { background: green; } .chain-test-out {
div.chain.out div { background: red; display: none; } background: green;
}
.chain-test-out div {
background: red;
display: none;
}


/* tests to ensure jQuery can determine the native display mode of elements /* tests to ensure jQuery can determine the native display mode of elements
that have been set as display: none in stylesheets */ that have been set as display: none in stylesheets */
Expand Down
28 changes: 14 additions & 14 deletions test/index.html
Expand Up @@ -289,28 +289,28 @@ <h2 id="qunit-userAgent"></h2>
</em> </em>
<span id="siblingspan"></span> <span id="siblingspan"></span>
</div> </div>
<div id="fx-test-group" style="position:absolute;width:1px;height:1px;overflow:hidden;"> <div id="fx-test-group" style="position: absolute; width: 1px; height: 1px; overflow: hidden;">
<div id="fx-queue" name="test"> <div id="fx-queue" name="test">
<div id="fadein" class='chain test' name='div'>fadeIn<div>fadeIn</div></div> <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="fadeout" class='chain-test chain-test-out'>fadeOut<div>fadeOut</div></div>


<div id="show" class='chain test'>show<div>show</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="hide" class='chain-test chain-test-out'>hide<div>hide</div></div>


<div id="togglein" class='chain test'>togglein<div>togglein</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="toggleout" class='chain-test chain-test-out'>toggleout<div>toggleout</div></div>




<div id="slideup" class='chain test'>slideUp<div>slideUp</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="slidedown" class='chain-test chain-test-out'>slideDown<div>slideDown</div></div>


<div id="slidetogglein" class='chain test'>slideToggleIn<div>slideToggleIn</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 id="slidetoggleout" class='chain-test chain-test-out'>slideToggleOut<div>slideToggleOut</div></div>


<div id="fadetogglein" class='chain test'>fadeToggleIn<div>fadeToggleIn</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="fadetoggleout" class='chain-test chain-test-out'>fadeToggleOut<div>fadeToggleOut</div></div>


<div id="fadeto" class='chain test'>fadeTo<div>fadeTo</div></div> <div id="fadeto" class='chain-test'>fadeTo<div>fadeTo</div></div>
</div> </div>


<div id="fx-tests"></div> <div id="fx-tests"></div>
Expand Down
6 changes: 5 additions & 1 deletion test/unit/effects.js
Expand Up @@ -1029,6 +1029,10 @@ jQuery.checkState = function() {
}; };


// Chaining Tests // Chaining Tests
// We need to pass jQuery.support.shrinkWrapBlocks for all tests that
// set overflow hidden (which effect.js does for all slide*() methods and
// show()/hide() if a speed is given).

test("Chain fadeOut fadeIn", function() { test("Chain fadeOut fadeIn", function() {
jQuery("#fadein div").saveState().fadeOut("fast").fadeIn("fast", jQuery.checkState ); jQuery("#fadein div").saveState().fadeOut("fast").fadeIn("fast", jQuery.checkState );
}); });
Expand All @@ -1043,7 +1047,7 @@ test("Chain show hide", function() {
jQuery("#hide div").saveState( jQuery.support.shrinkWrapBlocks ).show("fast").hide("fast", jQuery.checkState ); jQuery("#hide div").saveState( jQuery.support.shrinkWrapBlocks ).show("fast").hide("fast", jQuery.checkState );
}); });
test("Chain show hide with easing and callback", function() { test("Chain show hide with easing and callback", function() {
jQuery("#hide div").saveState().show("fast").hide("fast","linear", jQuery.checkState ); jQuery("#hide div").saveState( jQuery.support.shrinkWrapBlocks ).show("fast").hide("fast","linear", jQuery.checkState );
}); });


test("Chain toggle in", function() { test("Chain toggle in", function() {
Expand Down

0 comments on commit 6e75fe5

Please sign in to comment.