aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit
AgeCommit message (Collapse)AuthorFilesLines
2018-01-11Comply to the new rules.XhmikosR11-1401/+1577
2018-01-11Clean up and tweak ESLint rules.XhmikosR1-0/+33
Also, refactor ESLint and stylelint config files; now everything will work from our root dir.
2018-01-03Multiple accordion support (#25161)Martijn Cuppens1-0/+75
2017-12-31Allow nested structure for accordions (#25121)Martijn Cuppens1-10/+48
This commit allows nested structures for accordions. Also a part of the documentation about data-children is removed because this functionality didn't work and it's not applicable anymore. Tests with the collapse accordion are also a bit adjusted to the new situation.
2017-12-12dropdown: add boundary config option (#24976)Troy Morehouse1-0/+44
2017-11-26tab.js: do not remove fade class if there's no initial active paneAlessandro Chitolina1-0/+33
2017-11-23Allow us to run our unit test on differents jquery versionJohann-S1-0/+2
2017-11-15Correct spelling mistakes. (#24778)Edward Betts1-1/+1
2017-11-09Use native pseudo-selectors instead of jQuery selectors (#24713)Vasilii Artemchuk2-37/+37
2017-11-07Fix test failure with jQuery 1.9.1 (#24706)XhmikosR1-1/+1
2017-11-07Escape ID in Util.getSelectorFromElement (#24700)Johann-S1-1/+14
2017-11-07Popover - call `content` once if it's a function. (#24690)Johann-S1-0/+21
2017-10-27Fix unit tests.Johann-S1-141/+184
2017-10-27Dropdown handle keydown on input and textarea.Pierre-Denis Vanduynslager1-5/+141
2017-10-25Add unit tests for util.jsJohann-S1-0/+57
2017-10-24Change Rollup config to wrap our dist files with jQuery instead of $Johann-S1-19/+0
2017-10-23Add `Util.jQuery` which will detect jQuery instead of relying on global `$` ↵Johann-S1-0/+19
(#24513)
2017-10-04Update modal.jsXhmikosR1-1/+4
2017-10-04Unit test for modal bug fixlucascono1-0/+13
Unit test for pull request #24240
2017-09-26Normalize all links. (#24109)XhmikosR1-1/+1
* use a trailing slash when possible * use https when possible * remove a few redirected links * consistently use `https://popper.js.org/` * fix `iconUrl` in nuget files * change Jekyll Windows guide to the official one
2017-09-25Collapse - Allow to pass jQuery object or DOM element to the parent optionJohann-S1-0/+44
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-09-17fix(scrollspy): Spying on nested navs fails to activate for .nav-link's ↵Troy Morehouse1-0/+41
inside nav-item's (#23967) * fix(scrollspy): Handle nested navs when nav-link inside nav-item * [scrolspy] Find only child .nav-link's inside .nav-item * [scrollspyt] Add tests for nested navs with nav-link inside nav-item * fix troy-o's in test
2017-09-03Merge branch 'v4-dev' into fix-jumping-modal-on-resizeJohann-S1-1/+27
2017-08-29Add failing testDavid Bailey1-0/+14
2017-08-29Fix unit tests in PhantomJSDavid Bailey1-3/+10
Use a virtual scrollbar as this is simpler than having a real one (overflow: scroll doesn't seem to work in Phantom), and disable it for the new test. One test has also been altered to prevent erroneous fails when other inline styles are added to the body (e.g. overflow).
2017-08-28Add failing testDavid Bailey1-0/+19
When the body does not overflow (achieved by hiding the QUnit container), it should not be given a margin.
2017-08-25Add unit test for xss in data target attributemeeque1-0/+36
2017-08-25Fix sticky margin when a modal is opened (#23669)David Bailey1-0/+42
* Adjust margin for sticky elements on modal Previously white space was visible to the right of sticky elements due to right padding being added to the body. This fixes #23661. * Add unit tests for margin of sticky elements on modal
2017-08-25Collapse - preventDefault only on <a> elements not inside the collapsibleJohann-S1-0/+25
element
2017-08-24Fix toggle for Tooltips/Popover which was called even if the Tooltip/Popover ↵Johann-S2-0/+45
was disabled
2017-08-23Tweak ESLint rules.XhmikosR10-21/+21
2017-08-17Add a unit test to check if the carousel do not cycle when its parent isn't ↵Johann-S1-0/+39
visible
2017-08-17Unit test to check if our carousel do not cycle when we cannot see itJohann-S1-0/+37
2017-08-11Improve previous selector for nested tabsJohann-S1-7/+8
2017-08-11Add unit test for nested tabsJohann-S1-0/+38
2017-07-04Dropdown - Disable applyStyle modifier instead of removing inline style ↵Johann-S1-0/+29
applied by Popper.js
2017-06-15Rename popover classesMark Otto1-14/+14
Part of an update to align the naming schemes across our components. - Renames .popover-title to .popover-header - Renames .popover-content to .popover-body Refs: #22092
2017-06-14Collapse supports multi-target thanks to @vanduynslagerp (#22713)Johann-S1-4/+89
2017-06-14Fix unit tests with no assertionJohann-S1-11/+23
2017-05-27Update nav and navbar HTML markupGeremia Taglialatela1-31/+31
According to the docs, you just need to apply the `navbar-nav` to an `<ul>` tag in a list-based navbar. In fact, `navbar-nav` seems to override all the css properties set by `nav`. Also, `nav-item` class should be used only for `<li>` tags, or in conjunction with `<a>` tags to entirely avoid the list-based approach. This commit removes the redundant `nav` class from `navbar-nav` `<ul>` tags, moves `nav-item` from `<a>` tags to `<li>` tags and properly adds `nav-item` class to `<li>` tags where missing. Refs: * https://v4-alpha.getbootstrap.com/components/navs/ * https://v4-alpha.getbootstrap.com/components/navbar/#nav
2017-05-14Handle dropup for DropdownJohann-S1-2/+7
2017-05-14Fix unit tests + Update Popper to 1.6.0Johann-S3-87/+40
2017-05-14Fix arrow for tooltip and popoverJohann-S1-56/+27
2017-05-14Add attachment classesJohann-S1-1/+1
2017-04-26Fix Toggle buttons don't honor [disabled] or .disabledAnna1-0/+17
2017-04-25Detach accordion from card without requiring 'data-children'Pierre Vanduynslager1-9/+67
2017-04-20Build system overhaul.Bardi Harborow1-72/+0
2017-04-17Fix carousel "hover" behavior on touch-enabled devicesPatrick H. Lauke1-23/+0
* Add carousel mouse listeners even if touch events enabled - touch events are enabled not just on "mobile", just also on touch-enabled desktop/laptop devices; additionally, it's possible to pair a mouse with traditionally touch-only devices (e.g. Android phones/tablets); currently, in these situations the carousel WON'T pause even when using a mouse * Restart cycle after touchend as `mouseenter` is fired as part of the touch compatibility events, the previous change results in carousels which cycle until the user tapped/interacted with them. after that they stop cycling (as `mouseleave` is not sent to the carousel after user scrolled/tapped away). this fix resets the cycling after `touchend` - essentially returning to the previous behavior, where on touch the carousel essentially never pauses, but now with the previous fix it at least pauses correctly for mouse users on touch-enabled devices. includes documentation for this new behavior.
2017-04-10Merge branch 'v4-dev' into dropdown-keyboardPierre Vanduynslager2-16/+34