aboutsummaryrefslogtreecommitdiff
path: root/js/tests/integration
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2019-02-23 00:37:55 +0200
committerXhmikosR <[email protected]>2019-02-26 13:04:04 +0200
commit8a37045b798fd66ede9c68774f9bb657e28d956a (patch)
tree35a1cf1b26701975f9732e99553e53fb295678c7 /js/tests/integration
parent8affe84c722bc459e7152e57d36a4f515f537abf (diff)
downloadbootstrap-8a37045b798fd66ede9c68774f9bb657e28d956a.tar.xz
bootstrap-8a37045b798fd66ede9c68774f9bb657e28d956a.zip
move util in a util folder with the sanitizer
Diffstat (limited to 'js/tests/integration')
-rw-r--r--js/tests/integration/bundle.js4
-rw-r--r--js/tests/integration/index.html6
2 files changed, 2 insertions, 8 deletions
diff --git a/js/tests/integration/bundle.js b/js/tests/integration/bundle.js
index 23caeab73..f2d3b0d7b 100644
--- a/js/tests/integration/bundle.js
+++ b/js/tests/integration/bundle.js
@@ -2,8 +2,6 @@ import 'popper.js'
import bootstrap from '../../../dist/js/bootstrap'
window.addEventListener('load', () => {
- document.getElementById('resultUID').innerHTML = bootstrap.Util.getUID('bs')
-
- bootstrap.Util.makeArray(document.querySelectorAll('[data-toggle="tooltip"]'))
+ Array.from(document.querySelectorAll('[data-toggle="tooltip"]'))
.map((tooltipNode) => new bootstrap.Tooltip(tooltipNode))
})
diff --git a/js/tests/integration/index.html b/js/tests/integration/index.html
index e5b33a84d..f14330f47 100644
--- a/js/tests/integration/index.html
+++ b/js/tests/integration/index.html
@@ -13,11 +13,7 @@
<body>
<div class="container">
<h1>Hello, world!</h1>
- <div class="col-12">
- <div class="mt-5 mb-3">
- <span>Util.getUID: </span>
- <span id="resultUID"></span>
- </div>
+ <div class="col-12 mt-5">
<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="top" title="Tooltip on top">
Tooltip on top
</button>