aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit
AgeCommit message (Collapse)AuthorFilesLines
2019-11-02backport #29516: added animation when modal backdrop is staticJohann-S1-0/+22
2019-11-02backport #29523: skip hidden dropdowns while focusingJohann-S1-0/+41
2019-08-27Backport #29298Johann-S1-1/+36
dropdown show method should do the same as toggle
2019-08-27Backport #29277Johann-S1-1/+45
dropdown - destroy old popper.js references
2019-08-27Backport #29251Johann-S2-0/+43
allow to pass popper.js configuration for tooltip/popover and dropdown
2019-07-31Backport #29155Johann-S1-0/+21
allow dynamic modal body for scrollable modals
2019-07-31Fix Typos across Bootstrap repository (#29082)Kitten King1-1/+1
2019-07-10Ensure button plugin sets/removes active class correctly on page load (#28952)Patrick H. Lauke1-10/+70
* Ensure correct active class is set on button toggles/checkboxes/radios on page load Sanity check, ensures that the UI visually matches the actual values/states of controls. Also ensures that if any autocomplete/autofill happened, this is visually accounted for by having the correct class set. Includes unit tests (and `autocomplete` has been removed from these as it's no longer necessary) * Remove now unnecessary autocomplete attribute As the attribute was there to force/ensure that the visual presentation matched the state, and this is now taken care of programmatically, there's no need to unnecessarily suppress autocomplete...let them autocomplete if they want to...
2019-06-19Add missing dropdown unit test for closing with ESC (#28929)Patrick H. Lauke1-0/+39
Backport of the unit test from https://github.com/twbs/bootstrap/pull/28928
2019-06-18Don't open dropdown on ESC on trigger element (#28912)Patrick H. Lauke1-0/+25
* Don't open dropdown on ESC on trigger element Closes #28751
2019-06-18Fix keyboard handling of button-style checkbox/radio button groups (#28834)Patrick H. Lauke1-28/+133
- adds more defensive checks to make sure no unnecessary toggling happens on disabled buttons; this also fixes an up-to-now undiscovered bug where a toggle button with `.disabled` class would still have its `aria-pressed` toggled - adds a set of explicit tests for the above case of disabled buttons and `aria-pressed` - remove a now irrelevant (or at least very nonsensical) test for `<label>` containing both an actionable and a `hidden` `<input>` - expand the test for disabled checkbox to also explicitly test starting conditions (used mainly in my debugging) - ensure that `$btn[0].click()` is used to click checkboxes in tests, rather than the `click()` on the jquery object which is simply a shorthand for `trigger('click')` and does not actually trigger the browser default behavior - remove the `preventDefault()` from the button handling, which was preventing correct keyboard functionality for checkboxes/radio buttons - add extra logic to the button.js code to handle checkboxes correctly and avoid double-triggering as a result of mouse interactions (which saw the checkboxes being toggled twice, thus returning them to their original state) - add logic that prevents the `checked` property from being added incorrectly for any inputs other than radio buttons and checkboxes - added more tests (including the most basic test for a properly triggered fake checkbox button) - work around Firefox bug #1540995 (which this code was hitting after removing the `preventDefault()`, due to Firefox's incorrect toggling of disabled checkboxes when programmatically (but not manually) activated with a `click()` event
2019-05-30Backport #28777.Johann-S1-0/+71
Toast should allow prevent default for hide and show events
2019-04-29fix unit tests for chrome mobileJohann-S2-5/+13
2019-03-27Reset carousel touch delta x to prevent click transformation in swipe (#28558)Johann-S1-2/+4
2019-03-08fix jquery detectionJohann-S1-0/+5
2019-02-13Add sanitize template option for tooltip/popover plugins.Johann-S1-0/+160
2019-02-06fix modal test to be sure we call getTransitionDurationFromElementJohann-S1-10/+5
2019-02-06allow to override default toast options (#28186)Johann-S1-0/+20
2019-02-06fix tabs, apply show class only when fade class is present (#28183)Johann-S1-0/+56
2019-02-05Move dropdown offset function logic into private function. (#28138)Jason Golieb1-0/+55
2019-02-05Add support for tooltip offset option to be a function.Jason Golieb1-0/+37
2019-01-20Scrollable modal (#27769)Shohei Yoshida1-0/+27
2019-01-14Fix Carousel's touch option to not add touch listeners when set to false ↵Johann-S1-2/+15
(#28046)
2019-01-04carousel should not cycle when there is no data-ride on init (#27968)Johann-S1-0/+47
2018-12-23getSelectorFromElement return null on bad selectors (#27912)Johann-S2-31/+27
2018-12-10Change button checkbox/radios to ignore hidden input fields (#27802)Mike Vastola1-0/+23
2018-12-06avoid console call in our unit tests (#27790)Johann-S3-3/+1
2018-12-05Add aria-modal to modals (#27780)Patrick H. Lauke1-0/+17
Dynamically set/remove `aria-modal="true"` when a modal is shown/hidden
2018-12-05Allow Tooltips/Popovers to work in shadow DOMJohann-S1-0/+38
2018-12-05fix regression about using element for tooltip container optionJohann-S1-0/+46
2018-11-25Add test to make sure we enforce focus on modal (#27723)Johann-S1-0/+41
2018-11-13Remove the show delay for our toast pluginJohann-S1-26/+1
2018-11-13Implement `data-dismiss="toast"` to allow user to interact itself with the ↵Laussel Loïc1-0/+29
component (#27155)
2018-11-13Create toast JS plugin, add unit tests.Johann-S2-1/+237
2018-11-02handle detached tooltip when we try to hide a modalJohann-S1-0/+58
2018-10-30fix dispose modal unit testJohann-S1-3/+8
2018-10-30test(Modal): check if modal is disposedAndrew Luca1-0/+33
2018-10-30Fix util tests on IE 10 (#27556)XhmikosR1-2/+2
2018-10-30Prevent the background to be shown when transitioningMartijn Cuppens1-0/+10
2018-10-29add unit tests for our carouselJohann-S1-0/+44
2018-10-29add unit test to test tabs can be removed without throwing errorJohann-S1-0/+45
2018-10-28calculate modal transition duration based on modal-dialog elementJohann-S1-0/+46
2018-10-21test(Modal): reuse _getScrollbarWidth in testsAndrew Luca1-8/+1
2018-10-20avoid drag imgJohann-S1-9/+11
2018-10-20Set touch-action to "none"patrickhlauke1-1/+1
Firefox currently seems extremely fickle - with `pan-y` if fires pointercancel as soon as a touch strays even a pixel or so vertically. While `touch-action: pan-y` would be ideal (allowing users to scroll the page even when their finger started the scroll on the carousel), this prevents a swipe that isn't perfectly/only horizontal to be recognised by Firefox.
2018-10-20Use correct touch-action valuespatrickhlauke1-1/+1
- my fault, my original advice of using `touch-action: pan-x` is exactly the value we *don't* want to have the browser handle...
2018-10-20use pointer events if availableJohann-S1-3/+122
2018-10-20swipe left/right without hammerjsJohann-S1-42/+31
2018-10-20Add touch support in our carousel with HammerJS.Johann-S2-1/+130
2018-10-20Add `show` and `hide` methods to dropdown (#27370)galczo51-0/+264