11define ( [
2+ "qunit" ,
23 "jquery" ,
34 "./helper" ,
45 "ui/widgets/sortable"
5- ] , function ( $ , testHelper ) {
6+ ] , function ( QUnit , $ , testHelper ) {
67
7- module ( "sortable: core" ) ;
8+ QUnit . module ( "sortable: core" ) ;
89
9- test ( "#9314: Sortable: Items cannot be dragged directly into bottom position" , function ( ) {
10- expect ( 1 ) ;
10+ QUnit . test ( "#9314: Sortable: Items cannot be dragged directly into bottom position" , function ( assert ) {
11+ assert . expect ( 1 ) ;
1112
1213 var el = $ ( ".connectWith" ) . sortable ( {
1314 connectWith : ".connectWith"
1415 } ) ;
1516
16- testHelper . sort ( $ ( "li" , el [ 1 ] ) [ 0 ] , 0 , - 12 , 5 , "Dragging the sortable into connected sortable" ) ;
17+ testHelper . sort ( assert , $ ( "li" , el [ 1 ] ) [ 0 ] , 0 , - 12 , 5 , "Dragging the sortable into connected sortable" ) ;
1718} ) ;
1819
19- test ( "ui-sortable-handle applied to appropriate element" , function ( assert ) {
20- expect ( 8 ) ;
20+ QUnit . test ( "ui-sortable-handle applied to appropriate element" , function ( assert ) {
21+ assert . expect ( 8 ) ;
2122 var item = "<li><p></p></li>" ,
2223 el = $ ( "<ul>" + item + item + "</ul>" )
2324 . sortable ( )
@@ -36,7 +37,7 @@ test( "ui-sortable-handle applied to appropriate element", function( assert ) {
3637 assert . hasClasses ( el . find ( "p:last" ) , "ui-sortable-handle" ) ;
3738
3839 el . sortable ( "destroy" ) ;
39- equal ( el . find ( ".ui-sortable-handle" ) . length , 0 , "class name removed on destroy" ) ;
40+ assert . equal ( el . find ( ".ui-sortable-handle" ) . length , 0 , "class name removed on destroy" ) ;
4041} ) ;
4142
4243} ) ;
0 commit comments