diff options
| author | XhmikosR <[email protected]> | 2021-08-23 18:33:55 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-23 18:33:55 +0300 |
| commit | 40042ee5039a2c21e3709dabeebcdc493f4a71cb (patch) | |
| tree | ac260dbbbd03ae37e31b7bb2e869c46cf60651db | |
| parent | 6cf52ed5f79815369e4737f82d45fbb5eb59a459 (diff) | |
| download | bootstrap-40042ee5039a2c21e3709dabeebcdc493f4a71cb.tar.xz bootstrap-40042ee5039a2c21e3709dabeebcdc493f4a71cb.zip | |
visual tests: minor fixes (#34802)
| -rw-r--r-- | js/tests/visual/carousel.html | 2 | ||||
| -rw-r--r-- | js/tests/visual/modal.html | 2 | ||||
| -rw-r--r-- | js/tests/visual/tab.html | 2 | ||||
| -rw-r--r-- | js/tests/visual/tooltip.html | 6 |
4 files changed, 5 insertions, 7 deletions
diff --git a/js/tests/visual/carousel.html b/js/tests/visual/carousel.html index 2a7f793f6..561b6ce5a 100644 --- a/js/tests/visual/carousel.html +++ b/js/tests/visual/carousel.html @@ -60,7 +60,7 @@ // Test to show that transition-duration can be changed with css 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) }) carousel.addEventListener('slide.bs.carousel', function () { t0 = performance.now() diff --git a/js/tests/visual/modal.html b/js/tests/visual/modal.html index 8ad9f63fb..ac0a931af 100644 --- a/js/tests/visual/modal.html +++ b/js/tests/visual/modal.html @@ -199,7 +199,7 @@ </button> </div> - <script src="../../../node_modules/popper.js/dist/umd/popper.min.js"></script> + <script src="../../../node_modules/@popperjs/core/dist/umd/popper.min.js"></script> <script src="../../dist/dom/event-handler.js"></script> <script src="../../dist/dom/selector-engine.js"></script> <script src="../../dist/dom/data.js"></script> diff --git a/js/tests/visual/tab.html b/js/tests/visual/tab.html index 16c19de63..0ce8be03c 100644 --- a/js/tests/visual/tab.html +++ b/js/tests/visual/tab.html @@ -218,13 +218,11 @@ </div> </div> - <script src="../../../node_modules/popper.js/dist/umd/popper.min.js"></script> <script src="../../dist/dom/event-handler.js"></script> <script src="../../dist/dom/selector-engine.js"></script> <script src="../../dist/dom/data.js"></script> <script src="../../dist/dom/manipulator.js"></script> <script src="../../dist/base-component.js"></script> <script src="../../dist/tab.js"></script> - <script src="../../dist/dropdown.js"></script> </body> </html> diff --git a/js/tests/visual/tooltip.html b/js/tests/visual/tooltip.html index 370b0da77..ab6040920 100644 --- a/js/tests/visual/tooltip.html +++ b/js/tests/visual/tooltip.html @@ -45,9 +45,6 @@ </div> <div class="row"> <p> - <button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="left" title="Tooltip with XSS" data-bs-container="<img src=1 onerror=alert(123)>"> - Tooltip with XSS - </button> <button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="left" title="Tooltip with container (selector)" data-bs-container="#customContainer"> Tooltip with container (selector) </button> @@ -57,6 +54,9 @@ <button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-html="true" title="<em>Tooltip</em> <u>with</u> <b>HTML</b>"> Tooltip with HTML </button> + <button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="left" title="Tooltip with XSS" data-bs-container="<img src=1 onerror=alert(123)>"> + Tooltip with XSS + </button> </p> </div> <div class="row"> |
