aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/effects/scale.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/effects/scale.js')
-rw-r--r--tests/unit/effects/scale.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/unit/effects/scale.js b/tests/unit/effects/scale.js
index dc8e9ba71..44a59234b 100644
--- a/tests/unit/effects/scale.js
+++ b/tests/unit/effects/scale.js
@@ -1,18 +1,20 @@
define( [
+ "qunit",
"jquery",
"ui/effects/effect-scale"
-], function( $ ) {
+], function( QUnit, $ ) {
-module( "effect.scale: Scale" );
+QUnit.module( "effect.scale: Scale" );
function run( position, v, h, vo, ho ) {
var desc = "End Position Correct: " + position + " (" + v + "," + h + ") - origin: (" + vo + "," + ho + ")";
- asyncTest( desc, function( assert ) {
- expect( 2 );
+ QUnit.test( desc, function( assert ) {
+ var ready = assert.async();
+ assert.expect( 2 );
function complete() {
assert.close( parseInt( test.css( h ), 10 ), target[ h ], 1, "Horizontal Position Correct " + desc );
assert.close( parseInt( test.css( v ), 10 ), target[ v ], 1, "Vertical Position Correct " + desc );
- start();
+ ready();
}
var test = $( ".testScale" ),
css = {