2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

fix(unit-test): dropdown, collapse and carousel

This commit is contained in:
Johann-S
2018-06-17 15:28:42 +02:00
committed by XhmikosR
parent 8010c010e9
commit 6b0808354d
5 changed files with 26 additions and 16 deletions
+2 -2
View File
@@ -676,7 +676,7 @@ $(function () {
$template.bootstrapCarousel()
var done = assert.async()
function handlerKeydown() {
function handlerKeydown(event) {
assert.strictEqual(event.defaultPrevented, false)
$template[0].removeEventListener('keydown', handlerKeydown)
}
@@ -687,7 +687,7 @@ $(function () {
keyDown.which = 40
$template[0].dispatchEvent(keyDown)
function handlerKeydown2() {
function handlerKeydown2(event) {
assert.strictEqual(event.defaultPrevented, false)
$template[0].addEventListener('keydown', handlerKeydown2)
done()