aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/spinner/spinner_methods.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-04-06 19:46:15 -0400
committerScott González <scott.gonzalez@gmail.com>2015-04-09 09:26:27 -0400
commit8bda52c8d1d681f3afe5827f8eda10475377442f (patch)
tree2c6d5e310d1741a6224c47e8019859d335062c0c /tests/unit/spinner/spinner_methods.js
parent23a7a113ac61bb12ad6a3775553d5ac1426f82f6 (diff)
downloadjquery-ui-8bda52c8d1d681f3afe5827f8eda10475377442f.tar.gz
jquery-ui-8bda52c8d1d681f3afe5827f8eda10475377442f.zip
Spinner: Convert tests to new infrastructure
Ref #10119 Ref gh-1528
Diffstat (limited to 'tests/unit/spinner/spinner_methods.js')
-rw-r--r--tests/unit/spinner/spinner_methods.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/unit/spinner/spinner_methods.js b/tests/unit/spinner/spinner_methods.js
index 61ff21d1c..3f88a9e9c 100644
--- a/tests/unit/spinner/spinner_methods.js
+++ b/tests/unit/spinner/spinner_methods.js
@@ -1,12 +1,16 @@
-(function( $ ) {
+define( [
+ "jquery",
+ "./spinner_test_helpers",
+ "ui/spinner"
+], function( $, spinnerTestHelpers ) {
-var simulateKeyDownUp = TestHelpers.spinner.simulateKeyDownUp;
+var simulateKeyDownUp = spinnerTestHelpers.simulateKeyDownUp;
module( "spinner: methods" );
-test( "destroy", function() {
+test( "destroy", function( assert ) {
expect( 1 );
- domEqual( "#spin", function() {
+ assert.domEqual( "#spin", function() {
$( "#spin" ).spinner().spinner( "destroy" );
});
});
@@ -204,4 +208,4 @@ test( "widget", function() {
strictEqual( widgetElement[ 0 ], element.parent()[ 0 ], "parent element" );
});
-})( jQuery );
+} );