From 8470b6a96552285a8b8e68fb86a8611d75d017d1 Mon Sep 17 00:00:00 2001 From: Amanpreet Singh Date: Sun, 3 Apr 2016 22:02:14 +0530 Subject: Droppable: Shift to use no globals --- tests/unit/droppable/core.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tests/unit/droppable/core.js') 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( "content" ) ); el.droppable(); - testHelper.shouldDrop(); + testHelper.shouldDrop( assert ); el.droppable( "destroy" ); el.remove(); } ); -- cgit v1.2.3