mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Effects: Use new has/lacksClasses assertions for all class checks
This commit is contained in:
parent
15a9ed7708
commit
53d1bc2ce1
@ -9,6 +9,7 @@
|
||||
<script src="../../../external/qunit/qunit.js"></script>
|
||||
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
|
||||
<script src="../testsuite.js"></script>
|
||||
<script src="../../../external/qunit-assert-classes/qunit-assert-classes.js"></script>
|
||||
<script>
|
||||
TestHelpers.loadResources({
|
||||
js: [
|
||||
|
@ -182,13 +182,14 @@ asyncTest( "animateClass clears style properties when stopped", function() {
|
||||
start();
|
||||
});
|
||||
|
||||
asyncTest( "animateClass: css and class changes during animation are not lost (#7106)", function() {
|
||||
asyncTest( "animateClass: css and class changes during animation are not lost (#7106)",
|
||||
function( assert ) {
|
||||
expect( 2 );
|
||||
var test = $( "div.ticket7106" );
|
||||
|
||||
// ensure the class stays and that the css property stays
|
||||
function animationComplete() {
|
||||
ok( test.hasClass( "testClass" ), "class change during animateClass was not lost" );
|
||||
assert.hasClasses( test, "testClass", "class change during animateClass was not lost" );
|
||||
equal( test.height(), 100, "css change during animateClass was not lost" );
|
||||
start();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user