2012-04-19 17:03:21 +00:00
|
|
|
TestHelpers.commonWidgetTests( "autocomplete", {
|
2011-04-25 12:10:39 +00:00
|
|
|
defaults: {
|
2012-12-14 14:10:32 +00:00
|
|
|
appendTo: null,
|
2011-04-25 12:10:39 +00:00
|
|
|
autoFocus: false,
|
2014-12-03 16:20:20 +00:00
|
|
|
classes: {},
|
2011-04-25 12:10:39 +00:00
|
|
|
delay: 300,
|
|
|
|
disabled: false,
|
2012-05-15 12:07:35 +00:00
|
|
|
messages: {
|
|
|
|
noResults: "No search results.",
|
|
|
|
results: $.ui.autocomplete.prototype.options.messages.results
|
|
|
|
},
|
2011-04-25 12:10:39 +00:00
|
|
|
minLength: 1,
|
|
|
|
position: {
|
|
|
|
my: "left top",
|
|
|
|
at: "left bottom",
|
|
|
|
collision: "none"
|
|
|
|
},
|
|
|
|
source: null,
|
2010-01-20 14:00:14 +00:00
|
|
|
|
2011-04-25 12:10:39 +00:00
|
|
|
// callbacks
|
|
|
|
change: null,
|
|
|
|
close: null,
|
2011-04-25 18:04:30 +00:00
|
|
|
create: null,
|
2011-04-25 12:10:39 +00:00
|
|
|
focus: null,
|
|
|
|
open: null,
|
|
|
|
response: null,
|
|
|
|
search: null,
|
|
|
|
select: null
|
|
|
|
}
|
|
|
|
});
|