diff options
author | Scott González <scott.gonzalez@gmail.com> | 2014-08-01 13:30:45 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2014-08-01 13:30:45 -0400 |
commit | 5ddc7cd4d325a78e6dae3b7fbdc6313294a6d637 (patch) | |
tree | 811791d07b3105331bdf296ef054c38b3760f12f /tests | |
parent | c017628e11d382bf5844e93a28d5367d871986cc (diff) | |
download | jquery-ui-5ddc7cd4d325a78e6dae3b7fbdc6313294a6d637.tar.gz jquery-ui-5ddc7cd4d325a78e6dae3b7fbdc6313294a6d637.zip |
Tests: Whitespace
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/autocomplete/autocomplete_core.js | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/tests/unit/autocomplete/autocomplete_core.js b/tests/unit/autocomplete/autocomplete_core.js index e8a3e5937..2dda45b4d 100644 --- a/tests/unit/autocomplete/autocomplete_core.js +++ b/tests/unit/autocomplete/autocomplete_core.js @@ -190,29 +190,29 @@ asyncTest( "past end of menu in multiline autocomplete", function() { }); asyncTest( "ESCAPE in multiline autocomplete", function() { - expect( 2 ); - - var customVal = "custom value", - element = $( "#autocomplete-contenteditable" ).autocomplete({ - delay: 0, - source: [ "javascript" ], - focus: function( event, ui ) { - equal( ui.item.value, "javascript", "Item gained focus" ); - $( this ).text( customVal ); - event.preventDefault(); - } - }); - - element - .simulate( "focus" ) - .autocomplete( "search", "ja" ); - - setTimeout(function() { - element.simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } ); - element.simulate( "keydown", { keyCode: $.ui.keyCode.ESCAPE } ); - equal( element.text(), customVal ); - start(); - }, 50 ); + expect( 2 ); + + var customVal = "custom value", + element = $( "#autocomplete-contenteditable" ).autocomplete({ + delay: 0, + source: [ "javascript" ], + focus: function( event, ui ) { + equal( ui.item.value, "javascript", "Item gained focus" ); + $( this ).text( customVal ); + event.preventDefault(); + } + }); + + element + .simulate( "focus" ) + .autocomplete( "search", "ja" ); + + setTimeout(function() { + element.simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } ); + element.simulate( "keydown", { keyCode: $.ui.keyCode.ESCAPE } ); + equal( element.text(), customVal ); + start(); + }, 50 ); }); |