diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-04-06 14:27:05 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-04-09 09:26:26 -0400 |
commit | df3e8c4deb07105eb8a387caf27d7a1f9ecdb02c (patch) | |
tree | 5faa8be51309d848f95c9c5064c8152fb71ae12b /tests/unit/progressbar/progressbar_methods.js | |
parent | 739f9b3f6382195b6976abeb71fc4b09f75cc4e5 (diff) | |
download | jquery-ui-df3e8c4deb07105eb8a387caf27d7a1f9ecdb02c.tar.gz jquery-ui-df3e8c4deb07105eb8a387caf27d7a1f9ecdb02c.zip |
Progressbar: Convert tests to new infrastructure
Ref #10119
Ref gh-1528
Diffstat (limited to 'tests/unit/progressbar/progressbar_methods.js')
-rw-r--r-- | tests/unit/progressbar/progressbar_methods.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/unit/progressbar/progressbar_methods.js b/tests/unit/progressbar/progressbar_methods.js index c665566b5..eaf0a5c76 100644 --- a/tests/unit/progressbar/progressbar_methods.js +++ b/tests/unit/progressbar/progressbar_methods.js @@ -1,10 +1,13 @@ -(function( $ ) { +define( [ + "jquery", + "ui/progressbar" +], function( $ ) { module( "progressbar: methods" ); -test( "destroy", function() { +test( "destroy", function( assert ) { expect( 1 ); - domEqual( "#progressbar", function() { + assert.domEqual( "#progressbar", function() { $( "#progressbar" ).progressbar().progressbar( "destroy" ); }); }); @@ -36,4 +39,4 @@ test( "widget", function() { strictEqual( widgetElement[ 0 ], element[ 0 ], "same element" ); }); -}( jQuery ) ); +} ); |