diff options
Diffstat (limited to 'js/tests/visual/carousel.html')
| -rw-r--r-- | js/tests/visual/carousel.html | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/js/tests/visual/carousel.html b/js/tests/visual/carousel.html index 561b6ce5a..1b2de5291 100644 --- a/js/tests/visual/carousel.html +++ b/js/tests/visual/carousel.html @@ -45,24 +45,19 @@ </div> </div> - <script src="../../dist/dom/event-handler.js"></script> - <script src="../../dist/dom/selector-engine.js"></script> - <script src="../../dist/dom/manipulator.js"></script> - <script src="../../dist/dom/data.js"></script> - <script src="../../dist/base-component.js"></script> - <script src="../../dist/carousel.js"></script> + <script src="../../../dist/js/bootstrap.bundle.js"></script> <script> - var t0 - var t1 - var carousel = document.getElementById('carousel-example-generic') + let t0 + let t1 + const carousel = document.getElementById('carousel-example-generic') // Test to show that the carousel doesn't slide when the current tab isn't visible // Test to show that transition-duration can be changed with css - carousel.addEventListener('slid.bs.carousel', function (event) { + carousel.addEventListener('slid.bs.carousel', event => { t1 = performance.now() - console.log('transition-duration took ' + (t1 - t0) + 'ms, slid at ' + event.timeStamp) + console.log(`transition-duration took ${t1 - t0}ms, slid at ${event.timeStamp}`) }) - carousel.addEventListener('slide.bs.carousel', function () { + carousel.addEventListener('slide.bs.carousel', () => { t0 = performance.now() }) </script> |
