aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/button/button_methods.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-04-06 10:13:15 -0400
committerScott González <scott.gonzalez@gmail.com>2015-04-09 09:24:45 -0400
commitf908a7793bf9e06f3e23d15028baf2e90e92baaa (patch)
treeb9e837d84ddee6fc29e0876a124c099e8703c127 /tests/unit/button/button_methods.js
parentaff3c32ee1f0b81ecea613057e95a40d8edc6b03 (diff)
downloadjquery-ui-f908a7793bf9e06f3e23d15028baf2e90e92baaa.tar.gz
jquery-ui-f908a7793bf9e06f3e23d15028baf2e90e92baaa.zip
Button: Convert tests to new infrastructure
Ref #10119 Ref gh-1528
Diffstat (limited to 'tests/unit/button/button_methods.js')
-rw-r--r--tests/unit/button/button_methods.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/unit/button/button_methods.js b/tests/unit/button/button_methods.js
index d4d92cead..be36096b2 100644
--- a/tests/unit/button/button_methods.js
+++ b/tests/unit/button/button_methods.js
@@ -1,13 +1,13 @@
-/*
- * button_methods.js
- */
-(function($) {
+define( [
+ "jquery",
+ "ui/button"
+], function( $ ) {
module("button: methods");
-test("destroy", function() {
+test("destroy", function( assert ) {
expect( 1 );
- domEqual( "#button", function() {
+ assert.domEqual( "#button", function() {
$( "#button" ).button().button( "destroy" );
});
});
@@ -70,4 +70,4 @@ test( "refresh: buttonset should turn added elements into button widgets", funct
equal( checkboxButtonset.find( ":ui-button" ).length, 4, "checkbox" );
});
-})(jQuery);
+} );