aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit
AgeCommit message (Collapse)AuthorFilesLines
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.
2015-08-27Remove the obsolete JSHint references.XhmikosR1-6/+0
2015-08-18rewrite tab with new active shitJacob Thornton1-10/+10
2015-08-18Merge branch 'v4' of github.com:twbs/derpstrap into v4Jacob Thornton1-30/+29
2015-08-18js tests passing + eslintJacob Thornton1-14/+11
2015-08-18add polyfil for bind for tether.jsJacob Thornton1-0/+32
2015-08-04Merge branch 'master' into v4mMark Otto1-0/+32
2015-07-27Fix triggering of {shown,hidden}.bs.dropdown events so relatedTarget gets ↵Johann-S1-0/+32
set properly Fixes #16828 Closes #16865
2015-06-18Merge branch 'master' into v4Mark Otto1-5/+5
2015-06-02generalize dropdowns / drop role="menu"Patrick H. Lauke1-5/+5
as role="menu" is a very specific (and strict) ARIA pattern for desktop-like application menus, and our dropdowns are often used as pure navigation dropdowns, this change abandons ARIA menus for a more open-ended and light-weight approach (see http://heydonworks.com/practical_aria_examples/#submenus and http://www.w3.org/WAI/tutorials/menus/flyout/#improve-screen-reader-support-using-wai-aria) note that in dropdown.js, switched to now target ``.dropdown-menu`` instead of ``role["menu"]`` - this also prevents bootstrap scripts from "bleeding" into non-bootstrap components on the same page. also removed the ``role=["listbox"]`` part, which appears to be vestigial/unused (only place in bootstrap that uses that role are carousels, and their key handling is done separately)
2015-05-17Use `https` when possible.XhmikosR1-1/+1
2015-05-13al tests passing, dist rebuilt, w/typecheckerfat1-1/+3
2015-05-13add simple type checker implementationfat1-0/+30
2015-05-13fix up testsfat1-72/+72
2015-05-13fix #15301fat1-0/+45
2015-05-13address https://github.com/twbs/bootstrap/pull/16135fat1-0/+86
2015-05-13implement global dispose methodfat2-3/+3
2015-05-12grunt test-js, grunt dist-js now workingfat1-1/+1
2015-05-12popover passing as wellfat2-28/+13
2015-05-11rewritten tooltip + tether integration and death to our positioner jankfat1-607/+49