aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit
AgeCommit message (Collapse)AuthorFilesLines
2017-03-19Merge branch 'collapse' of https://github.com/Johann-S/bootstrap into ↵Mark Otto1-0/+23
Johann-S-collapse
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
2017-03-09Add unit testJohann-S1-0/+23
2017-02-08Fixes #21941Pierre-Denis Vanduynslager1-5/+11
2017-01-20Harmonize document.activeElement comparisonPierre-Denis Vanduynslager1-3/+3
2017-01-20Refactor test to event and asyncPierre-Denis Vanduynslager1-64/+141
2017-01-20Add unit test for keyboard navigationPierre-Denis Vanduynslager1-0/+34
2017-01-20Fix test to retrieve the proper item instead of it's parentPierre-Denis Vanduynslager1-1/+1
2017-01-06Merge branch 'twbs/v4-dev' into dropdown-keyboardPierre-Denis Vanduynslager1-0/+11
2017-01-06Update dropdown unit test to new markupPierre-Denis Vanduynslager1-137/+136
2017-01-04Close #21090 - Fix aria-pressed attribute for buttons in container with ↵Johann-S1-0/+11
data-toggle='buttons'
2017-01-02Dropdown: close menu when focusing outside element (#21375)Pierre-Denis Vanduynslager1-0/+60
* Close dropdown menu when focusing an outside element * Update unit test to new markup
2017-01-02update seletors in jsMark Otto1-4/+4
2016-12-31Allow to use nav with tab JSJohann-S1-0/+16
2016-12-29Close #21249 : Add a Unit test for #21227Johann-S2-0/+62
2016-12-27update click state when hiding so can be shown again by trigger. fixes #16732Max Beatty1-0/+21
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-12-23Carousel: Only prevents default for ARROW_LEFT and ARROW_RIGHT keysMatheus Azzi1-0/+31
Fixes 2 bugs: 1. All keydowns were being prevented. Because of that the user wasn't able to navigate in the whole page using ARROW_UP/ARROW_DOWN. 2. Even when is an input or textarea the keydowns were being prevented. Because of that the user wasn't able to type any text on these elements.
2016-12-07Rename `.active` to `.show`Starsam805-57/+57
2016-11-27Closes #21055: Prevents ScrollSpy from clearing active item when Safari ↵Rob Ruana1-0/+44
rubberbands (#21056) When the rubberband effect causes Safari to scroll past the top of the page, the value of scrollTop becomes negative. If the offset of the first ScrollSpy target is 0 - essentially if the target is at the top of the page - then ScrollSpy should not clear the active item. Conceptually, the first item should remain active when rubberbanding past the top of the page. This commit fixes issue #21055 by verifying the first scrollspy target is not at the top of the page before clearing the active nav-item.
2016-11-26Merge pull request #18900 from vlastikcz/v4-dev-buttonChangeMark Otto1-0/+20
Button toggling - trigger change event on input. Fixes #16673, fixes #17599.
2016-11-26Merge pull request #19058 from Johann-S/carouselInputMark Otto1-0/+32
Carousel - Do not prevent on keydown for input and textarea
2016-11-26Merge branch 'v4-dev-18796' of https://github.com/maxbeatty/bootstrap into ↵Mark Otto1-0/+22
maxbeatty-v4-dev-18796
2016-11-25Add test unit to check logic of ignoreBackdropClick (#18245)Johann1-0/+13
2016-11-25Merge branch 'eslint' of https://github.com/bardiharborow/bootstrap into ↵Mark Otto11-61/+34
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 Harborow11-61/+34
2016-10-31Making .tooltip('show') throw an error on elements with display:none (#20940)Johann2-0/+25
2016-10-28Merge pull request #17536 from Johann-S/testPaddingMark Otto1-0/+38
[Fix #17400] Add tests about padding restoration
2016-10-25Use a single class name for opened/expanded/shown state of widgetsJohann-S5-57/+57
2016-10-24Merge pull request #20467 from maxbeatty/v4-dev-17754Mark Otto1-0/+16
add support for ol in tab plugin
2016-10-19Fix bug multiple accordions collapseJohann-S1-0/+23
2016-10-11Collapse using card componentJohann-S1-18/+18
2016-10-09Merge pull request #17568 from Johann-S/fixCollapseHeightMark Otto1-0/+15
[Fix #17555][V4] fix resetting style on closing collapse
2016-09-15replace some profanities (#20715)VarelloThemes1-1/+1
2016-08-04add support for ol in tab plugin. fixes #17754Max Beatty1-0/+16
2016-08-04prevent navigating to area href when modal target. fixes #18796Max Beatty1-0/+22
2016-06-28ScrollSpy unit test: Use single done() in a then() instead of multiple ↵Dave Methvin1-2/+2
done()s (#20198) Fixes test flakiness on OS X Safari and Android when using jQuery 3. Fixes #20182 more Refs #20191
2016-06-27Scrollspy test: Allow for async .then() in jQuery 3; fixes #20182Dave Methvin1-2/+2
Instead of doing a new assert.async(), just do a single one for the entire test and let the .then() be async as well. Closes #20190
2016-06-26Remove unnecessary usage of Promises in non-async ScrollSpy tests (#20180)Chris Rebert1-28/+26
Closes #19906 [skip validator]
2016-05-30Fix load & scroll event usage in ScrollSpy tests (#19986)Chris Rebert1-7/+7
* Use $.one() instead of $.on() since there are no $.off()s in the code. * Remove unnecessary namespacing of listeners for the `scroll` & `load` events. These are vanilla DOM events (not custom jQuery namespaced events) and we're not using jQuery namespacing to manage these event listeners either (e.g. `$.off()`). [skip validator]
2016-05-29js/tests/unit/scrollspy.js: Fix "offsed" typos (#19985)Chris Rebert1-2/+2
[skip sauce] [skip validator]
2016-05-11Handle aria-hidden on modal container when showing/hidingPatrick H. Lauke1-0/+17
Fixes #19878
2016-02-01Carousel - Do not prevent on keydown for input and textareaJohann-S1-0/+32
2016-01-14Button toggling - trigger change event on inputKotas Vlastimil1-0/+20
Bootstrap’s .button styles can be applied to other elements, such as labels, to provide checkbox or radio style button toggling. When the checkbox or radio state is changed, there should be triggered the change event. Currently, the change event is triggered on the Button, which is not correct. Only input fields do support the change event.
2015-12-22js/tests/unit/modal.js: Fix typoChris Rebert1-1/+1
[ci skip]
2015-10-02Add throw error for undefined method on pluginsJohann-S8-0/+96
2015-09-11fix resetting style on closing collapseJohann-S1-0/+15
2015-09-10Add tests about padding restorationJohann-S1-0/+38
2015-08-31Accept elements as the tooltip / popover contentGleb Mazovetskiy2-0/+65
When a DOM node is passed to an HTML tooltip, the `title` node is only moved if it is not already in the tooltip. Otherwise, `empty()` is used instead of `detach()` before appending the `title` to avoid memory leaks. If a DOM node is passed to a plain text tooltip, its text is copied via jQuery `.text()`. Replaces `.detach()` with `.empty()`, as `.detach()` is almost never useful but instead leaks memory. The difference between `empty` and `detach` is that the latter keeps all the attached jQuery events/data. However, since we do not return the previous children, the user would have to keep these themselves, thus they can `detach()` if necessary. This is a port of https://github.com/twbs/bootstrap/pull/14552 to v4.