Skip to content

Commit a9f200d

Browse files
committed
tests: update tests
1 parent 1d2f27c commit a9f200d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

js/tests/visual/button.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h1>Button <small>Bootstrap Visual Test</small></h1>
1515
</button>
1616

1717
<p>For checkboxes and radio buttons, ensure that keyboard behavior is functioning correctly.</p>
18-
<p>Navigate to the checkboxes with the keyboard (generally, using <kbd>TAB</kbd> / <kbd>SHIFT + TAB</kbd>), and ensure that <kbd>SPACE</kbd> toggles the currently focused checkbox. Click on one of the checkboxes using the mouse, ensure that focus was correctly set on the actual checkbox, and that <kbd>SPACE</kbd> toggles the checkbox again.</p>
18+
<p>Navigate to the checkboxes with the keyboard (generally, using <kbd>Tab</kbd> / <kbd><kbd>Shift</kbd> + <kbd>Tab</kbd></kbd>), and ensure that <kbd>Space</kbd> toggles the currently focused checkbox. Click on one of the checkboxes using the mouse, ensure that focus was correctly set on the actual checkbox, and that <kbd>Space</kbd> toggles the checkbox again.</p>
1919

2020
<div class="btn-group" data-coreui-toggle="buttons">
2121
<label class="btn btn-primary active">
@@ -29,7 +29,7 @@ <h1>Button <small>Bootstrap Visual Test</small></h1>
2929
</label>
3030
</div>
3131

32-
<p>Navigate to the radio button group with the keyboard (generally, using <kbd>TAB</kbd> / <kbd>SHIFT + TAB</kbd>). If no radio button was initially set to be selected, the first/last radio button should receive focus (depending on whether you navigated "forward" to the group with <kbd>TAB</kbd> or "backwards" using <kbd>SHIFT + TAB</kbd>). If a radio button was already selected, navigating with the keyboard should set focus to that particular radio button. Only one radio button in a group should receive focus at any given time. Ensure that the selected radio button can be changed by using the <kbd></kbd> and <kbd></kbd> arrow keys. Click on one of the radio buttons with the mouse, ensure that focus was correctly set on the actual radio button, and that <kbd></kbd> and <kbd></kbd> change the selected radio button again.</p>
32+
<p>Navigate to the radio button group with the keyboard (generally, using <kbd>Tab</kbd> / <kbd><kbd>Shift</kbd> + <kbd>Tab</kbd></kbd>). If no radio button was initially set to be selected, the first/last radio button should receive focus (depending on whether you navigated "forward" to the group with <kbd>Tab</kbd> or "backwards" using <kbd><kbd>Shift</kbd> + <kbd>Tab</kbd></kbd>). If a radio button was already selected, navigating with the keyboard should set focus to that particular radio button. Only one radio button in a group should receive focus at any given time. Ensure that the selected radio button can be changed by using the <kbd></kbd> and <kbd></kbd> arrow keys. Click on one of the radio buttons with the mouse, ensure that focus was correctly set on the actual radio button, and that <kbd></kbd> and <kbd></kbd> change the selected radio button again.</p>
3333

3434
<div class="btn-group" data-coreui-toggle="buttons">
3535
<label class="btn btn-primary active">

js/tests/visual/carousel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h1>Carousel <small>Bootstrap Visual Test</small></h1>
5555
// Test to show that transition-duration can be changed with css
5656
carousel.addEventListener('slid.coreui.carousel', event => {
5757
t1 = performance.now()
58-
console.log('transition-duration took ' + (t1 - t0) + 'ms, slid at ' + event.timeStamp)
58+
console.log(`transition-duration took ${t1 - t0}ms, slid at ${event.timeStamp}`)
5959
})
6060
carousel.addEventListener('slide.coreui.carousel', () => {
6161
t0 = performance.now()

js/tests/visual/modal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ <h1 class="modal-title fs-4" id="slowModalLabel">Lorem slowly</h1>
264264

265265
slowModal.addEventListener('shown.coreui.modal', () => {
266266
t1 = performance.now()
267-
console.log('transition-duration took ' + (t1 - t0) + 'ms.')
267+
console.log(`transition-duration took ${t1 - t0}ms.`)
268268
})
269269

270270
slowModal.addEventListener('show.coreui.modal', () => {

0 commit comments

Comments
 (0)