mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Tests: further improvements QUnit 2.0 migration
* Remove QUnit jshint globals * Extend QUnit.assert methods * Use assert.async instead of start/stop/done Refb930d14ce6Refc8d15a2f9f
This commit is contained in:
6
test/unit/effects.js
vendored
6
test/unit/effects.js
vendored
@@ -91,7 +91,7 @@ QUnit.test( "show()", function( assert ) {
|
||||
} );
|
||||
|
||||
// Tolerate data from show()/hide()
|
||||
QUnit.expectJqData( this, div, "display" );
|
||||
assert.expectJqData( this, div, "display" );
|
||||
|
||||
jQuery(
|
||||
"<div id='show-tests'>" +
|
||||
@@ -222,7 +222,7 @@ QUnit.test( "Persist correct display value", function( assert ) {
|
||||
|
||||
clock.tick( 300 );
|
||||
|
||||
QUnit.expectJqData( this, $span, "display" );
|
||||
assert.expectJqData( this, $span, "display" );
|
||||
} );
|
||||
|
||||
QUnit.test( "animate(Hash, Object, Function)", function( assert ) {
|
||||
@@ -1141,7 +1141,7 @@ QUnit.test( "interrupt toggle", function( assert ) {
|
||||
jQuery.data( this, "startVal", jQuery( this ).css( prop ) );
|
||||
|
||||
// Expect display data from our .hide() call below
|
||||
QUnit.expectJqData( env, this, "display" );
|
||||
assert.expectJqData( env, this, "display" );
|
||||
} );
|
||||
|
||||
// Interrupt a hiding toggle
|
||||
|
||||
Reference in New Issue
Block a user