From: Jacob Thornton Date: Sat, 28 Jan 2012 08:03:26 +0000 (-0800) Subject: fix failing typeahead tests X-Git-Tag: v2.0.0~6^2~93 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3451dcbc2816e86fc649d30bd9d6813ef5466b58;p=thirdparty%2Fbootstrap.git fix failing typeahead tests --- diff --git a/js/tests/unit/bootstrap-typeahead.js b/js/tests/unit/bootstrap-typeahead.js index 10b2a3f174..455ed415b7 100644 --- a/js/tests/unit/bootstrap-typeahead.js +++ b/js/tests/unit/bootstrap-typeahead.js @@ -38,7 +38,7 @@ $(function () { test("should show menu when query entered", function () { var $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 = $('').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 = $('').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 = $('').typeahead({ - data: ['aa', 'ab', 'ac'] + source: ['aa', 'ab', 'ac'] }) , typeahead = $input.data('typeahead')