Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoSot <geo.sotis@gmail.com>2022-09-22 01:48:23 +0300
committerGitHub <noreply@github.com>2022-09-22 01:48:23 +0300
commit27f20257ebd092b2e5d11a62de0cd5e9cf5a9949 (patch)
treebaea7ce3dc36784fd184e77ef625d5feed9c904b /js/tests/visual/carousel.html
parent37e2e7e1249b0e514d6d07e3ee1bc01dbdc42c8d (diff)
Use es6 on visual tests (#36915)
Diffstat (limited to 'js/tests/visual/carousel.html')
-rw-r--r--js/tests/visual/carousel.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/tests/visual/carousel.html b/js/tests/visual/carousel.html
index b26895fd05..153c866042 100644
--- a/js/tests/visual/carousel.html
+++ b/js/tests/visual/carousel.html
@@ -47,17 +47,17 @@
<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)
})
- carousel.addEventListener('slide.bs.carousel', function () {
+ carousel.addEventListener('slide.bs.carousel', () => {
t0 = performance.now()
})
</script>