diff options
author | Amanpreet Singh <apsdehal@gmail.com> | 2016-04-03 22:02:14 +0530 |
---|---|---|
committer | Amanpreet Singh <apsdehal@gmail.com> | 2016-04-14 00:06:12 +0530 |
commit | 8470b6a96552285a8b8e68fb86a8611d75d017d1 (patch) | |
tree | 916d20ed18c1d27b25897e17e09587a12703219c /tests/unit/droppable/core.js | |
parent | 46f607af976abef77bf53685d21fa836359c8438 (diff) | |
download | jquery-ui-8470b6a96552285a8b8e68fb86a8611d75d017d1.tar.gz jquery-ui-8470b6a96552285a8b8e68fb86a8611d75d017d1.zip |
Droppable: Shift to use no globals
Diffstat (limited to 'tests/unit/droppable/core.js')
-rw-r--r-- | tests/unit/droppable/core.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/unit/droppable/core.js b/tests/unit/droppable/core.js index c4ce0378c..3d41e5db8 100644 --- a/tests/unit/droppable/core.js +++ b/tests/unit/droppable/core.js @@ -1,18 +1,19 @@ define( [ + "qunit", "jquery", "./helper", "ui/widgets/droppable" -], function( $, testHelper ) { +], function( QUnit, $, testHelper ) { -module( "droppable: core" ); +QUnit.module( "droppable: core" ); -test( "element types", function() { +QUnit.test( "element types", function( assert ) { var typeNames = ( "p,h1,h2,h3,h4,h5,h6,blockquote,ol,ul,dl,div,form" + ",table,fieldset,address,ins,del,em,strong,q,cite,dfn,abbr" + ",acronym,code,samp,kbd,var,img,hr" + ",input,button,label,select,iframe" ).split( "," ); - expect( typeNames.length ); + assert.expect( typeNames.length ); $.each( typeNames, function( i ) { var typeName = typeNames[ i ], @@ -20,7 +21,7 @@ test( "element types", function() { ( typeName === "table" && el.append( "<tr><td>content</td></tr>" ) ); el.droppable(); - testHelper.shouldDrop(); + testHelper.shouldDrop( assert ); el.droppable( "destroy" ); el.remove(); } ); |