aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/resizable/methods.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/resizable/methods.js')
-rw-r--r--tests/unit/resizable/methods.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/unit/resizable/methods.js b/tests/unit/resizable/methods.js
index eea42a682..7ee49eee6 100644
--- a/tests/unit/resizable/methods.js
+++ b/tests/unit/resizable/methods.js
@@ -1,21 +1,22 @@
define( [
+ "qunit",
"jquery",
"ui/widgets/resizable"
-], function( $ ) {
+], function( QUnit, $ ) {
-module( "resizable: methods" );
+QUnit.module( "resizable: methods" );
-test( "disable", function( assert ) {
- expect( 5 );
+QUnit.test( "disable", function( assert ) {
+ assert.expect( 5 );
var element = $( "#resizable1" ).resizable( { disabled: false } ),
chainable = element.resizable( "disable" );
assert.lacksClasses( element.resizable( "widget" ), "ui-state-disabled" );
- ok( !element.resizable( "widget" ).attr( "aria-disabled" ), "element does not get aria-disabled" );
+ assert.ok( !element.resizable( "widget" ).attr( "aria-disabled" ), "element does not get aria-disabled" );
assert.hasClasses( element.resizable( "widget" ), "ui-resizable-disabled" );
- equal( element.resizable( "option", "disabled" ), true, "disabled option setter" );
- equal( chainable, element, "disable is chainable" );
+ assert.equal( element.resizable( "option", "disabled" ), true, "disabled option setter" );
+ assert.equal( chainable, element, "disable is chainable" );
} );
} );