aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/tab.js
AgeCommit message (Collapse)AuthorFilesLines
2021-09-15Change test description so that it's uniqueXhmikosR1-1/+1
2021-09-15tests: comply to the new rulesXhmikosR1-16/+16
Use `assert.strictEqual`/`assert.true`/`assert.false`
2021-04-28Backport #33634 (#33649)Carson Sievert1-0/+22
Dropdown: support `.dropdown-item` wrapped in `<li>` tags
2020-09-10Comply to the new rulesXhmikosR1-4/+4
2020-06-24Backport #30973XhmikosR1-5/+5
Remove the class `.nav-item` from `.nav-link` inside the non `ul` or `ol` based navs. This makes the consistency for `.nav-item` (This class will not be required on the `.nav-link`). `.nav-item` was only required when you use `.nav-fill` or `.nav-justified` on the `.nav`. In other cases, it was redundant. And the purpose of `.nav-item` on `.nav-link`s can be achieved via flexbox utilities as well (Mentioned in the docs also).
2020-04-10 v4 tabs - accessibility issue when using ul/li semantic (#30381)Laussel Loïc1-12/+12
Add aria-role presentation on li element when ul element has role tablist and remove dropdown from visual tests as they've been removed from doc
2019-02-06fix tabs, apply show class only when fade class is present (#28183)Johann-S1-0/+56
2018-10-29add unit test to test tabs can be removed without throwing errorJohann-S1-0/+45
2018-09-13throw error when folks try to use a bad selectorJohann-S1-4/+4
2018-05-22chore(deps): update qunit and karma-qunitJohann-S1-0/+1
2018-01-11Comply to the new rules.XhmikosR1-136/+134
2017-11-26tab.js: do not remove fade class if there's no initial active paneAlessandro Chitolina1-0/+33
2017-11-09Use native pseudo-selectors instead of jQuery selectors (#24713)Vasilii Artemchuk1-31/+31
2017-09-24Accessibility fixes to dynamic tabs (`aria-selected`, remove dynamic tabs ↵Patrick H. Lauke1-13/+13
with dropdowns) * Use `aria-selected` instead of `aria-expanded` * Change tab.js to use `aria-selected` rather than `aria-expanded` * Add `aria-orientation=vertical` to vertical tab list * Remove dynamic tabs with dropdowns * Fix non-interactive code examples * Only set `aria-selected` on the `role="tab"` trigger - this stops `aria-selected` being incorrectly added to the `role="tabpanel"` itself (probably harmless, but nonetheless incorrect)
2017-08-23Tweak ESLint rules.XhmikosR1-1/+1
2017-08-11Improve previous selector for nested tabsJohann-S1-7/+8
2017-08-11Add unit test for nested tabsJohann-S1-0/+38
2017-04-02Tabs/Scrollspy/.nav/.list-group/.active independent of markup (<nav>, ↵Pierre Vanduynslager1-16/+16
.nav-item, <li> etc...)
2017-03-18Allow to use Tab.js with list-group (#21756)Johann1-0/+16
* Allow to use Tab.js with list-group * Allow to use list-group with div parent instead of an ul parent
2016-12-31Allow to use nav with tab JSJohann-S1-0/+16
2016-12-24[Fix #19849] Tabs are opened even if disabled. (#20795)Alessandro Rodi1-0/+38
* [Fix #19849] Tabs are opened even if disabled. * fix hund code review hints * rollback hound issues because Travis fails
2016-11-25Merge branch 'eslint' of https://github.com/bardiharborow/bootstrap into ↵Mark Otto1-1/+1
bardiharborow-eslint
2016-11-25[Fix #17371][V4] Deactivating dropdown links in nav tab (#17642)Matt Hernandez1-0/+32
* Fix bug with dropdown tab links not deactivating when other tab or dropdown link is clicked * Revise bug fix for more stability
2016-11-24Make JS compliant with the new ESLint rules.Bardi Harborow1-1/+1
2016-08-04add support for ol in tab plugin. fixes #17754Max Beatty1-0/+16
2015-10-02Add throw error for undefined method on pluginsJohann-S1-0/+12
2015-08-18rewrite tab with new active shitJacob Thornton1-10/+10
2015-03-09Disable jQuery event aliases when running test suiteChris Rebert1-2/+2
To ensure that we don't accidentally use any of the aliases. This should prevent any future regressions from #12761. Also updates the test suite since it now can't use these aliases either.
2015-03-03[Fixes #15953] Implement assert.expect in each unit testKevin Kirsche1-0/+11
[Fixes #15953] Implement `assert.expect` in each unit test
2015-02-26Unit tests: Use new names of module hooksHeinrich Fenkart1-2/+2
Refs #15893
2015-02-23JS unit tests: equal() => strictEqual()Chris Rebert1-16/+16
[skip validator]
2015-02-23JS unit tests: use QUnit.module() & QUnit.test() everywhereChris Rebert1-13/+13
[skip validator]
2015-02-23JS unit tests: use modern QUnit assert object everywhereChris Rebert1-32/+32
2015-01-20fix bug in tab show/shown relatedTarget unit testChris Rebert1-1/+1
2015-01-20update JS unit tests to future-proof QUnit 1.16.0 APIChris Rebert1-15/+15
[skip validator]
2014-10-26Tabs plugin accessibilityCameron Little1-0/+24
Added support for `aria-expanded` toggling via JavaScript. Added `aria-controls`, `aria-expanded`, `aria-labelledby` to tabs docs. Added `aria-expanded` unit test for the tabs plugin. See also #13554. Closes #14154 by merging it.
2014-10-22Implement `hide` and `hidden` events for tabsPhil Hughes1-0/+77
Closes #14772.
2014-07-06Move to leading plusesHeinrich Fenkart1-16/+16
2014-07-06Clean tab unit tests upHeinrich Fenkart1-19/+27
2014-06-06Comply to the new style.XhmikosR1-2/+3
2014-04-21#11464 - Fix JS noConflict mode - Refactor all plugins to use an internal ↵Collin Donahue-Oponski1-15/+24
reference to the jQuery plugin, because in noConflict mode you can never expect to be defined on the jQuery object
2014-02-17Remove semicolons from JS testsZlatan Vasović1-5/+5
2014-02-14Re-indent test files.XhmikosR1-67/+67
2014-01-16new qunitfat1-3/+6
2013-12-19No leading plusesZlatan Vasović1-19/+16
2013-12-08Use single quotes consistently.XhmikosR1-16/+16
2013-12-06Use a space before functions' bracket consistently.XhmikosR1-2/+2
2013-12-06Use a space after function consistently.XhmikosR1-2/+2
2013-10-25QUnit.equals() is deprecated; use QUnit.equal() insteadChris Rebert1-6/+6
2013-05-16change namespace back to dot notation and someother js shizzlefat1-3/+3