aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2014-08-01 13:30:45 -0400
committerScott González <scott.gonzalez@gmail.com>2014-08-01 13:30:45 -0400
commit5ddc7cd4d325a78e6dae3b7fbdc6313294a6d637 (patch)
tree811791d07b3105331bdf296ef054c38b3760f12f /tests
parentc017628e11d382bf5844e93a28d5367d871986cc (diff)
downloadjquery-ui-5ddc7cd4d325a78e6dae3b7fbdc6313294a6d637.tar.gz
jquery-ui-5ddc7cd4d325a78e6dae3b7fbdc6313294a6d637.zip
Tests: Whitespace
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/autocomplete/autocomplete_core.js46
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 );
});