aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/autocomplete
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-04-25 08:10:39 -0400
committerScott González <scott.gonzalez@gmail.com>2011-04-25 08:11:52 -0400
commitc4c36e557ef2b3450bc365708064f7314bc6fdc4 (patch)
tree118b1f85496ec0118b31f2bcdbffbfd685ac5684 /tests/unit/autocomplete
parent6326da3fdb29ea4f40e39bc06abf14cde5ba5c8c (diff)
downloadjquery-ui-c4c36e557ef2b3450bc365708064f7314bc6fdc4.tar.gz
jquery-ui-c4c36e557ef2b3450bc365708064f7314bc6fdc4.zip
Accordion, Autocomplete, Tabs: Separate callbacks and options in the defaults.
Diffstat (limited to 'tests/unit/autocomplete')
-rw-r--r--tests/unit/autocomplete/autocomplete_defaults.js41
1 files changed, 23 insertions, 18 deletions
diff --git a/tests/unit/autocomplete/autocomplete_defaults.js b/tests/unit/autocomplete/autocomplete_defaults.js
index dd5007089..05897b848 100644
--- a/tests/unit/autocomplete/autocomplete_defaults.js
+++ b/tests/unit/autocomplete/autocomplete_defaults.js
@@ -1,19 +1,24 @@
-/*
- * autocomplete_defaults.js
- */
+commonWidgetTests( "autocomplete", {
+ defaults: {
+ appendTo: "body",
+ autoFocus: false,
+ delay: 300,
+ disabled: false,
+ minLength: 1,
+ position: {
+ my: "left top",
+ at: "left bottom",
+ collision: "none"
+ },
+ source: null,
-var autocomplete_defaults = {
- appendTo: "body",
- autoFocus: false,
- delay: 300,
- disabled: false,
- minLength: 1,
- position: {
- my: "left top",
- at: "left bottom",
- collision: "none"
- },
- source: null
-};
-
-commonWidgetTests('autocomplete', { defaults: autocomplete_defaults });
+ // callbacks
+ change: null,
+ close: null,
+ focus: null,
+ open: null,
+ response: null,
+ search: null,
+ select: null
+ }
+});