diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-08-07 08:10:49 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-08-07 08:10:49 -0400 |
commit | 8799ba08225d00113df2ed9d5ff4cf9f69b1dd22 (patch) | |
tree | b8e183fe446be143134abceb0d4c07499d5377b2 /tests/unit/spinner/spinner_events.js | |
parent | 380c2e6fbdba524c56855e9c9018b6bf89225c50 (diff) | |
download | jquery-ui-8799ba08225d00113df2ed9d5ff4cf9f69b1dd22.tar.gz jquery-ui-8799ba08225d00113df2ed9d5ff4cf9f69b1dd22.zip |
Spinner tests: Fixed line endings.
Diffstat (limited to 'tests/unit/spinner/spinner_events.js')
-rw-r--r-- | tests/unit/spinner/spinner_events.js | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/tests/unit/spinner/spinner_events.js b/tests/unit/spinner/spinner_events.js index 66735028a..98292b055 100644 --- a/tests/unit/spinner/spinner_events.js +++ b/tests/unit/spinner/spinner_events.js @@ -1,50 +1,50 @@ -(function( $ ) {
-
-module( "spinner: events" );
-
-test( "start", function() {
- expect( 1 );
- var element = $( "#spin" ).spinner({
- start: function() {
- ok( true, "start" );
- }
- });
-
- spinner_simulateKeyDownUp( element, $.ui.keyCode.UP );
-});
-
-test( "spin", function() {
- expect( 1 );
- var element = $( "#spin" ).spinner({
- spin: function(){
- ok( true, "spin" );
- }
- });
-
- spinner_simulateKeyDownUp( element, $.ui.keyCode.UP );
-});
-
-test( "stop", function() {
- expect( 1 );
- var element = $( "#spin" ).spinner({
- stop: function(){
- ok( true, "stop" );
- }
- });
-
- spinner_simulateKeyDownUp( element, $.ui.keyCode.DOWN );
-});
-
-test( "change", function() {
- expect( 1 );
- var element = $( "#spin" ).spinner({
- change: function(){
- ok( true, "change" );
- }
- });
-
- spinner_simulateKeyDownUp( element, $.ui.keyCode.UP );
- element.blur();
-});
-
-})( jQuery );
+(function( $ ) { + +module( "spinner: events" ); + +test( "start", function() { + expect( 1 ); + var element = $( "#spin" ).spinner({ + start: function() { + ok( true, "start" ); + } + }); + + spinner_simulateKeyDownUp( element, $.ui.keyCode.UP ); +}); + +test( "spin", function() { + expect( 1 ); + var element = $( "#spin" ).spinner({ + spin: function(){ + ok( true, "spin" ); + } + }); + + spinner_simulateKeyDownUp( element, $.ui.keyCode.UP ); +}); + +test( "stop", function() { + expect( 1 ); + var element = $( "#spin" ).spinner({ + stop: function(){ + ok( true, "stop" ); + } + }); + + spinner_simulateKeyDownUp( element, $.ui.keyCode.DOWN ); +}); + +test( "change", function() { + expect( 1 ); + var element = $( "#spin" ).spinner({ + change: function(){ + ok( true, "change" ); + } + }); + + spinner_simulateKeyDownUp( element, $.ui.keyCode.UP ); + element.blur(); +}); + +})( jQuery ); |