diff options
| author | Johann-S <[email protected]> | 2018-06-17 15:28:42 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-02-20 22:05:45 +0200 |
| commit | 6b0808354d212272030e598f4e8ea9e2bce7703a (patch) | |
| tree | b0bcef2ba25f29b8f863eb5cbd9d3c6bc1120add /js/tests/unit/carousel.js | |
| parent | 8010c010e9f15ec04e291a07316f93bda5b46f19 (diff) | |
| download | bootstrap-6b0808354d212272030e598f4e8ea9e2bce7703a.tar.xz bootstrap-6b0808354d212272030e598f4e8ea9e2bce7703a.zip | |
fix(unit-test): dropdown, collapse and carousel
Diffstat (limited to 'js/tests/unit/carousel.js')
| -rw-r--r-- | js/tests/unit/carousel.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tests/unit/carousel.js b/js/tests/unit/carousel.js index 6533454a6..9016f61ab 100644 --- a/js/tests/unit/carousel.js +++ b/js/tests/unit/carousel.js @@ -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() |
