diff options
author | Amanpreet Singh <apsdehal@gmail.com> | 2016-04-06 18:56:05 +0530 |
---|---|---|
committer | Amanpreet Singh <apsdehal@gmail.com> | 2016-04-14 00:14:57 +0530 |
commit | b5028f02bf29a882e5a1c35bf58220f69ea5a998 (patch) | |
tree | 192dab7554db9ad98d5a3e9d34c06829f389faf1 /tests/unit/spinner/deprecated.js | |
parent | 749f95ee0ab25b7ee03b3def88ec5bc604ab9929 (diff) | |
download | jquery-ui-b5028f02bf29a882e5a1c35bf58220f69ea5a998.tar.gz jquery-ui-b5028f02bf29a882e5a1c35bf58220f69ea5a998.zip |
Spinner: Shift to use no globals
Diffstat (limited to 'tests/unit/spinner/deprecated.js')
-rw-r--r-- | tests/unit/spinner/deprecated.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/unit/spinner/deprecated.js b/tests/unit/spinner/deprecated.js index 6e177ba4b..baa36acf3 100644 --- a/tests/unit/spinner/deprecated.js +++ b/tests/unit/spinner/deprecated.js @@ -1,11 +1,12 @@ define( [ + "qunit", "jquery", "ui/widgets/spinner" -], function( $ ) { +], function( QUnit, $ ) { var originalSpinner = $.ui.spinner.prototype; -module( "spinner: deprecated", { - setup: function() { +QUnit.module( "spinner: deprecated", { + beforeEach: function() { $.widget( "ui.spinner", $.ui.spinner, { _uiSpinnerHtml: function() { return "<span class='spin-wrap'>"; @@ -23,13 +24,13 @@ module( "spinner: deprecated", { } ); }, - teardown: function() { + afterEach: function() { $.ui.spinner.prototype = originalSpinner; } } ); -test( "markup structure - custom", function( assert ) { - expect( 2 ); +QUnit.test( "markup structure - custom", function( assert ) { + assert.expect( 2 ); var element = $( "#spin" ).spinner(), spinner = element.spinner( "widget" ), up = spinner.find( ".ui-spinner-up" ); |