From: Jacob Thornton Date: Sat, 14 Apr 2012 23:32:20 +0000 (-0700) Subject: fix typeahead test X-Git-Tag: v2.0.3~5^2~38^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c291e4d78681b5111b4a2c7f480bd7bf18abc34c;p=thirdparty%2Fbootstrap.git fix typeahead test --- diff --git a/js/tests/unit/bootstrap-typeahead.js b/js/tests/unit/bootstrap-typeahead.js index 25d313c85c..4e2428d6a4 100644 --- a/js/tests/unit/bootstrap-typeahead.js +++ b/js/tests/unit/bootstrap-typeahead.js @@ -107,7 +107,7 @@ $(function () { ok(typeahead.$menu.find('li').first().hasClass('active'), "first item is active") $input.trigger({ - type: 'keypress' + type: 'keydown' , keyCode: 40 }) @@ -115,7 +115,7 @@ $(function () { $input.trigger({ - type: 'keypress' + type: 'keydown' , keyCode: 38 })