aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/carousel.js
AgeCommit message (Collapse)AuthorFilesLines
2017-08-23Tweak ESLint rules.XhmikosR1-5/+5
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-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-03-22Carousel - Add attributes from and to for Slid and Slide events (#21668)Johann1-0/+43
Carousel - Add attributes from and to for Slid and Slide events
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-11-26Merge pull request #19058 from Johann-S/carouselInputMark Otto1-0/+32
Carousel - Do not prevent on keydown for input and textarea
2016-11-24Make JS compliant with the new ESLint rules.Bardi Harborow1-1/+1
2016-02-01Carousel - Do not prevent on keydown for input and textareaJohann-S1-0/+32
2015-10-02Add throw error for undefined method on pluginsJohann-S1-0/+12
2015-05-13al tests passing, dist rebuilt, w/typecheckerfat1-1/+3
2015-05-13add simple type checker implementationfat1-0/+30
2015-05-07carousel -> es6fat1-80/+80
2015-05-06remove closureness from pluginsfat1-140/+160
2015-02-11bootstrap onto closurefat1-4/+5
2015-01-21Merge branch 'master' into v4Chris Rebert1-27/+27
2015-01-20update JS unit tests to future-proof QUnit 1.16.0 APIChris Rebert1-27/+27
[skip validator]
2014-12-17rename .item => .carousel-itemChris Rebert1-76/+76
2014-11-15add unit tests for Carousel's 'wrap' optionChris Rebert1-0/+153
2014-11-04Have Carousel ignore keyboard events from <input>s or <textarea>s; fixes #14991Chris Rebert1-0/+42
2014-10-03Add `keyboard` option to carouselHeinrich Fenkart1-0/+79
Also adds unit tests for keyboard events. Fixes #14468.
2014-09-23Only enable `pause: hover` for non-touch browsersHeinrich Fenkart1-0/+22
Fixes #11967.
2014-07-31Fix #13818 by using more robust "find next carousel item" logicChris Rebert1-1/+26
Also adds another test for #9461: carousel next/prev should ignore non-items
2014-07-06Move to leading plusesHeinrich Fenkart1-198/+198
2014-07-06Clean carousel unit tests upHeinrich Fenkart1-90/+292
2014-06-06Comply to the new style.XhmikosR1-2/+3
2014-05-01make new Carousel tests compatible with noConflict modeChris Rebert1-2/+2
2014-04-30Merge pull request #11966 from colllin/noconflictMark Otto1-16/+25
Fix #11464 - JS noConflict() mode not working in 3.0.x
2014-04-21#11464 - Fix JS noConflict mode - Refactor all plugins to use an internal ↵Collin Donahue-Oponski1-16/+25
reference to the jQuery plugin, because in noConflict mode you can never expect to be defined on the jQuery object
2014-04-21add unit tests for Carousel slid eventsChris Rebert1-0/+26
2014-04-21spelling fixes in Carousel unit testsChris Rebert1-3/+3
2014-03-24fixes #9461 - Make carousel ignore non-items in carousel-innerfat1-0/+28
2014-02-17Remove semicolons from JS testsZlatan Vasović1-31/+31
2014-02-14Re-indent test files.XhmikosR1-92/+92
2013-12-24Merge branch 'slide-event-reset' of git://github.com/Rowno/bootstrap into ↵fat1-1/+24
Rowno-slide-event-reset Conflicts: js/tests/unit/carousel.js
2013-12-08Use single quotes consistently.XhmikosR1-17/+17
2013-08-31carousel: correctly reset when the slide event is preventedRoland Warmerdam1-1/+24
2013-07-23add additional carousel testJacob Thornton1-1/+7
2013-05-16change namespace back to dot notation and someother js shizzlefat1-7/+7
2013-05-16fix testsfat1-7/+7
2013-05-16a bunch javascript junkfat1-0/+81