]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix failing typeahead tests
authorJacob Thornton <jacobthornton@gmail.com>
Sat, 28 Jan 2012 08:03:26 +0000 (00:03 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Sat, 28 Jan 2012 08:03:26 +0000 (00:03 -0800)
js/tests/unit/bootstrap-typeahead.js

index 10b2a3f1747bc6f998a18b77cd3fec5d4cea484e..455ed415b7821a726057e4319fb22148e0348405 100644 (file)
@@ -38,7 +38,7 @@ $(function () {
 
       test("should show menu when query entered", function () {
         var $input = $('<input />').typeahead({
-              data: ['aa', 'ab', 'ac']
+              source: ['aa', 'ab', 'ac']
             })
           , typeahead = $input.data('typeahead')
 
@@ -55,7 +55,7 @@ $(function () {
       test("should hide menu when query entered", function () {
         stop()
         var $input = $('<input />').typeahead({
-              data: ['aa', 'ab', 'ac']
+              source: ['aa', 'ab', 'ac']
             })
           , typeahead = $input.data('typeahead')
 
@@ -78,7 +78,7 @@ $(function () {
 
       test("should set next item when down arrow is pressed", function () {
         var $input = $('<input />').typeahead({
-              data: ['aa', 'ab', 'ac']
+              source: ['aa', 'ab', 'ac']
             })
           , typeahead = $input.data('typeahead')
 
@@ -111,7 +111,7 @@ $(function () {
 
       test("should set input value to selected item", function () {
         var $input = $('<input />').typeahead({
-              data: ['aa', 'ab', 'ac']
+              source: ['aa', 'ab', 'ac']
             })
           , typeahead = $input.data('typeahead')