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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user