From: jzaefferer Date: Sat, 15 May 2010 14:09:12 +0000 (+0200) Subject: Fixed visual test for Autocomplete to include select event. Test for #5405 Autocomple... X-Git-Tag: 1.8.2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bf673476ee6a20cb1ca4f7bd7e8c78ed008a27f6;p=jquery-ui.git Fixed visual test for Autocomplete to include select event. Test for #5405 Autocomplete: select event not triggered when mousedown duration > blur timeout --- diff --git a/tests/visual/autocomplete/autocomplete.html b/tests/visual/autocomplete/autocomplete.html index c39d032ff..d30b2078f 100644 --- a/tests/visual/autocomplete/autocomplete.html +++ b/tests/visual/autocomplete/autocomplete.html @@ -40,8 +40,11 @@ close: function() { log("Hiding suggestions"); }, + select: function(event, ui) { + log("Selected: " + ui.item.value); + }, change: function(event, ui) { - log(ui.item ? ("Selected: " + ui.item.value) : "Nothing selected, input was " + this.value); + log(ui.item ? ("Changed to: " + ui.item.value) : "Nothing selected, input was " + this.value); } }); }