diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-08-23 18:33:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-23 18:33:55 +0300 |
commit | 40042ee5039a2c21e3709dabeebcdc493f4a71cb (patch) | |
tree | ac260dbbbd03ae37e31b7bb2e869c46cf60651db | |
parent | 6cf52ed5f79815369e4737f82d45fbb5eb59a459 (diff) |
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 2a7f793f63..561b6ce5ae 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 8ad9f63fbd..ac0a931af5 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 16c19de63d..0ce8be03ca 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 370b0da774..ab60409205 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"> |