aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/autocomplete
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2011-03-15 05:48:31 -0400
committerRichard Worth <rdworth@gmail.com>2011-03-15 05:48:31 -0400
commit2f5eadeb8feb802bf3cbb24e329e3c4da3015322 (patch)
tree3aa8c32a205a8980a063af3ab05ebf3d15db9087 /tests/unit/autocomplete
parent09215ef2cda488cafa92c42a8c63e2f1131147d0 (diff)
downloadjquery-ui-2f5eadeb8feb802bf3cbb24e329e3c4da3015322.tar.gz
jquery-ui-2f5eadeb8feb802bf3cbb24e329e3c4da3015322.zip
Autocomplete: changed autoFocus default to true for 1.9. Fixed #7042 - Autocomplete: Default autoFocus to true
Diffstat (limited to 'tests/unit/autocomplete')
-rw-r--r--tests/unit/autocomplete/autocomplete_core.js1
-rw-r--r--tests/unit/autocomplete/autocomplete_defaults.js2
-rw-r--r--tests/unit/autocomplete/autocomplete_events.js2
3 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/autocomplete/autocomplete_core.js b/tests/unit/autocomplete/autocomplete_core.js
index 2edb8876c..19f52dc15 100644
--- a/tests/unit/autocomplete/autocomplete_core.js
+++ b/tests/unit/autocomplete/autocomplete_core.js
@@ -60,6 +60,7 @@ test( "prevent form submit on enter when menu is active", function() {
test( "allow form submit on enter when menu is not active", function() {
var event;
var ac = $( "#autocomplete" ).autocomplete({
+ autoFocus: false,
source: [ "java", "javascript" ]
}).val( "ja" ).autocomplete( "search" );
diff --git a/tests/unit/autocomplete/autocomplete_defaults.js b/tests/unit/autocomplete/autocomplete_defaults.js
index dd5007089..e2196ea9e 100644
--- a/tests/unit/autocomplete/autocomplete_defaults.js
+++ b/tests/unit/autocomplete/autocomplete_defaults.js
@@ -4,7 +4,7 @@
var autocomplete_defaults = {
appendTo: "body",
- autoFocus: false,
+ autoFocus: true,
delay: 300,
disabled: false,
minLength: 1,
diff --git a/tests/unit/autocomplete/autocomplete_events.js b/tests/unit/autocomplete/autocomplete_events.js
index 20fdb8471..aa0a17730 100644
--- a/tests/unit/autocomplete/autocomplete_events.js
+++ b/tests/unit/autocomplete/autocomplete_events.js
@@ -14,6 +14,7 @@ var data = ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "py
test("all events", function() {
expect(12);
var ac = $("#autocomplete").autocomplete({
+ autoFocus: false,
delay: 0,
source: data,
search: function(event) {
@@ -56,6 +57,7 @@ test("all events", function() {
test("all events - contenteditable", function() {
expect(12);
var ac = $("#autocomplete-contenteditable").autocomplete({
+ autoFocus: false,
delay: 0,
source: data,
search: function(event) {