From bf673476ee6a20cb1ca4f7bd7e8c78ed008a27f6 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Sat, 15 May 2010 16:09:12 +0200 Subject: [PATCH] Fixed visual test for Autocomplete to include select event. Test for #5405 Autocomplete: select event not triggered when mousedown duration > blur timeout --- tests/visual/autocomplete/autocomplete.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } }); } -- 2.39.5