aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/autocomplete/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/autocomplete/common.js')
-rw-r--r--tests/unit/autocomplete/common.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/unit/autocomplete/common.js b/tests/unit/autocomplete/common.js
new file mode 100644
index 000000000..5ee7cdda0
--- /dev/null
+++ b/tests/unit/autocomplete/common.js
@@ -0,0 +1,37 @@
+define( [
+ "lib/common",
+ "ui/autocomplete"
+], function( common ) {
+
+common.testWidget( "autocomplete", {
+ defaults: {
+ appendTo: null,
+ autoFocus: false,
+ classes: {},
+ delay: 300,
+ disabled: false,
+ messages: {
+ noResults: "No search results.",
+ results: $.ui.autocomplete.prototype.options.messages.results
+ },
+ minLength: 1,
+ position: {
+ my: "left top",
+ at: "left bottom",
+ collision: "none"
+ },
+ source: null,
+
+ // callbacks
+ change: null,
+ close: null,
+ create: null,
+ focus: null,
+ open: null,
+ response: null,
+ search: null,
+ select: null
+ }
+});
+
+} );