]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix typeahead test
authorJacob Thornton <jacobthornton@gmail.com>
Sat, 14 Apr 2012 23:32:20 +0000 (16:32 -0700)
committerJacob Thornton <jacobthornton@gmail.com>
Sat, 14 Apr 2012 23:32:20 +0000 (16:32 -0700)
js/tests/unit/bootstrap-typeahead.js

index 25d313c85c6898b7bad4599f405e40363f09d693..4e2428d6a49143479922537208a09e5ef7deaec1 100644 (file)
@@ -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
         })