1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 16:50:00 +02:00

fix(visual-test): remove jquery in them

This commit is contained in:
Johann-S
2018-06-17 23:09:04 +02:00
committed by XhmikosR
parent 0b726de94e
commit 5dcca44fcf
11 changed files with 103 additions and 57 deletions

View File

@@ -45,24 +45,25 @@
</div>
</div>
<script src="../../../node_modules/jquery/dist/jquery.slim.min.js"></script>
<script src="../../dist/dom/polyfill.js"></script>
<script src="../../dist/dom/manipulator.js"></script>
<script src="../../dist/dom/eventHandler.js"></script>
<script src="../../dist/dom/selectorEngine.js"></script>
<script src="../../dist/dom/data.js"></script>
<script src="../../dist/util.js"></script>
<script src="../../dist/carousel.js"></script>
<script>
$(function() {
document.addEventListener('DOMContentLoaded', function () {
var t0, t1;
var carousel = SelectorEngine.find('#carousel-example-generic')
var 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
EventHandler.on(carousel, 'slid.bs.carousel', function (event) {
carousel.addEventListener('slid.bs.carousel', function (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)
})
EventHandler.on(carousel, 'slide.bs.carousel', function () {
carousel.addEventListener('slide.bs.carousel', function () {
t0 = performance.now()
})
})