aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/collapse.js
AgeCommit message (Collapse)AuthorFilesLines
2021-09-15tests: comply to the new rulesXhmikosR1-66/+70
Use `assert.strictEqual`/`assert.true`/`assert.false`
2020-09-10Comply to the new rulesXhmikosR1-8/+8
2019-07-31Fix Typos across Bootstrap repository (#29082)Kitten King1-1/+1
2018-09-10collapse children with no data-parentJohann-S1-0/+34
2018-05-22chore(deps): update qunit and karma-qunitJohann-S1-0/+1
2018-03-20Use transitionEnd in QUnit since we moved away from PhantomJSJohann-S1-3/+7
2018-01-11Comply to the new rules.XhmikosR1-79/+74
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-11-15Correct spelling mistakes. (#24778)Edward Betts1-1/+1
2017-09-25Collapse - Allow to pass jQuery object or DOM element to the parent optionJohann-S1-0/+44
2017-08-25Collapse - preventDefault only on <a> elements not inside the collapsibleJohann-S1-0/+25
element
2017-08-23Tweak ESLint rules.XhmikosR1-1/+1
2017-06-14Collapse supports multi-target thanks to @vanduynslagerp (#22713)Johann-S1-4/+89
2017-04-25Detach accordion from card without requiring 'data-children'Pierre Vanduynslager1-9/+67
2017-04-10Fix collapse.js aria-expanded behaviorPatrick H. Lauke1-16/+16
* Remove aria-expanded from collapse.js target element aria-expanded="true"/aria-expanded="false" only applies to the trigger, not the element that is being expanded/collapsed. * Tweak collapse.js accessibility section ...to make it clearer that the aria-expanded attribute always just goes on the control. * Fix collapse.js unit tests - reword some of the text to make it clear we're checking behavior of trigger/control - move incorrect aria-expanded out of the <div>s and to the actual trigger/control <a>s - fix incorrect test assertion text output false -> true
2017-03-29Collapse - Fix check to not prevent event for input and textareaJohann-S1-1/+2
2017-03-27Collapse - do not prevent event for input and textareaJohann1-0/+16
2017-03-23Accordion behavior with JQuery interface (#21726)Pierre Vanduynslager1-22/+22
Fix accordion behavior with JQuery interface
2017-03-09Add unit testJohann-S1-0/+23
2016-12-07Rename `.active` to `.show`Starsam801-16/+16
2016-11-24Make JS compliant with the new ESLint rules.Bardi Harborow1-7/+7
2016-10-25Use a single class name for opened/expanded/shown state of widgetsJohann-S1-16/+16
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
2015-10-02Add throw error for undefined method on pluginsJohann-S1-0/+12
2015-09-11fix resetting style on closing collapseJohann-S1-0/+15
2015-05-09add collapsefat1-2/+2
2015-05-06remove closureness from pluginsfat1-1/+1
2015-03-29Merge branch 'master' into v4Mark Otto1-45/+91
Conflicts: .gitignore Gruntfile.js _config.yml dist/css/bootstrap-theme.css dist/css/bootstrap-theme.min.css dist/css/bootstrap.css dist/css/bootstrap.css.map dist/css/bootstrap.min.css dist/js/bootstrap.js dist/js/bootstrap.min.js docs/_includes/components/navbar.html docs/_includes/components/progress-bars.html docs/_includes/css/grid.html docs/_includes/css/overview.html docs/_includes/customizer-variables.html docs/_includes/getting-started/accessibility.html docs/_includes/getting-started/browser-device-support.html docs/_includes/getting-started/community.html docs/_includes/getting-started/disabling-responsiveness.html docs/_includes/getting-started/download.html docs/_includes/getting-started/examples.html docs/_includes/getting-started/license.html docs/_includes/getting-started/third-party-support.html docs/_includes/js/alerts.html docs/_includes/js/buttons.html docs/_includes/js/carousel.html docs/_includes/js/collapse.html docs/_includes/js/dropdowns.html docs/_includes/js/modal.html docs/_includes/js/popovers.html docs/_includes/js/scrollspy.html docs/_includes/js/tabs.html docs/_includes/js/tooltips.html docs/_includes/js/transitions.html docs/_includes/nav/javascript.html docs/_includes/nav/main.html docs/about.html docs/assets/css/docs.min.css docs/assets/css/src/docs.css docs/assets/js/customize.min.js docs/assets/js/raw-files.min.js docs/assets/js/src/customizer.js docs/dist/css/bootstrap-theme.css docs/dist/css/bootstrap-theme.min.css docs/dist/css/bootstrap.css docs/dist/css/bootstrap.css.map docs/dist/css/bootstrap.min.css docs/dist/js/bootstrap.js docs/dist/js/bootstrap.min.js docs/migration.html js/affix.js js/alert.js js/button.js js/carousel.js js/collapse.js js/dropdown.js js/modal.js js/popover.js js/scrollspy.js js/tab.js js/tests/unit/affix.js js/tests/unit/button.js js/tests/unit/carousel.js js/tests/unit/modal.js js/tests/unit/tooltip.js js/tests/visual/modal.html js/tooltip.js less/component-animations.less less/jumbotron.less less/mixins/background-variant.less less/mixins/buttons.less less/mixins/responsive-visibility.less less/mixins/text-emphasis.less less/navbar.less less/navs.less less/scaffolding.less less/tooltip.less less/utilities.less less/variables.less package.json scss/_buttons.scss scss/_forms.scss scss/_modal.scss
2015-03-24Merge pull request #15987 from twbs/fix-15972Chris Rebert1-25/+25
add role="button" to a[data-toggle="collapse"]
2015-03-09Disable jQuery event aliases when running test suiteChris Rebert1-13/+13
To ensure that we don't accidentally use any of the aliases. This should prevent any future regressions from #12761. Also updates the test suite since it now can't use these aliases either.
2015-03-06Collapse unit test: rm check that no-op hide adds style="height: 0px"Chris Rebert1-2/+1
Appears to be unnecessary and is broken by #16011, which is otherwise quite sane.
2015-03-06.collapse('hide') on hidden uninit-ed collapsible no longer shows it; fixes ↵Chris Rebert1-2/+30
#15315 Thanks to @peterblazejewicz & @Nikita240 Adds unit tests based on #14417 X-Ref: #14282 Closes #15807
2015-03-03add role="button" to a[data-toggle="collapse"]; fixes #15972Chris Rebert1-25/+25
2015-03-03[Fixes #15953] Implement assert.expect in each unit testKevin Kirsche1-4/+23
[Fixes #15953] Implement `assert.expect` in each unit test
2015-03-01Merge branch 'master' into v4Mark Otto1-55/+123
Conflicts: .travis.yml Gruntfile.js bower.json dist/css/bootstrap.css dist/css/bootstrap.css.map dist/css/bootstrap.min.css dist/js/bootstrap.js dist/js/bootstrap.min.js docs/_data/glyphicons.yml docs/_includes/components/breadcrumbs.html docs/_includes/components/button-dropdowns.html docs/_includes/components/button-groups.html docs/_includes/components/dropdowns.html docs/_includes/components/glyphicons.html docs/_includes/components/labels.html docs/_includes/components/list-group.html docs/_includes/components/media.html docs/_includes/components/navs.html docs/_includes/components/panels.html docs/_includes/components/progress-bars.html docs/_includes/components/thumbnails.html docs/_includes/components/wells.html docs/_includes/css/buttons.html docs/_includes/css/forms.html docs/_includes/css/helpers.html docs/_includes/css/images.html docs/_includes/css/less.html docs/_includes/customizer-variables.html docs/_includes/getting-started/accessibility.html docs/_includes/getting-started/browser-device-support.html docs/_includes/getting-started/community.html docs/_includes/getting-started/examples.html docs/_includes/getting-started/grunt.html docs/_includes/getting-started/license.html docs/_includes/getting-started/template.html docs/_includes/header.html docs/_includes/js/affix.html docs/_includes/js/alerts.html docs/_includes/js/carousel.html docs/_includes/js/collapse.html docs/_includes/js/dropdowns.html docs/_includes/js/modal.html docs/_includes/js/overview.html docs/_includes/js/popovers.html docs/_includes/js/scrollspy.html docs/_includes/js/tabs.html docs/_includes/js/tooltips.html docs/_includes/js/transitions.html docs/_includes/nav/javascript.html docs/_layouts/default.html docs/assets/css/docs.min.css docs/assets/css/src/docs.css docs/assets/js/customize.min.js docs/assets/js/docs.min.js docs/assets/js/raw-files.min.js docs/assets/js/vendor/FileSaver.js docs/assets/js/vendor/autoprefixer.js docs/assets/js/vendor/uglify.min.js docs/dist/css/bootstrap.css docs/dist/css/bootstrap.css.map docs/dist/css/bootstrap.min.css docs/dist/js/bootstrap.min.js docs/examples/blog/index.html docs/examples/carousel/index.html docs/examples/cover/index.html docs/examples/dashboard/index.html docs/examples/narrow-jumbotron/narrow-jumbotron.css docs/examples/navbar-fixed-top/index.html docs/examples/navbar-static-top/index.html docs/examples/non-responsive/index.html docs/examples/non-responsive/non-responsive.css docs/examples/theme/index.html grunt/configBridge.json js/affix.js js/carousel.js js/collapse.js js/dropdown.js js/modal.js js/popover.js js/scrollspy.js js/tab.js js/tests/unit/affix.js js/tests/unit/button.js js/tests/unit/carousel.js js/tests/unit/modal.js js/tests/unit/tooltip.js js/tooltip.js less/badges.less less/glyphicons.less less/type.less less/variables.less package.json scss/_dropdown.scss scss/_forms.scss test-infra/npm-shrinkwrap.json
2015-02-26Update all collapse triggers with .collapsed class and aria-expandedIvan Cheung1-3/+71
Fixes #15741 Closes #15751 by merging it.
2015-02-26Unit tests: Use new names of module hooksHeinrich Fenkart1-2/+2
Refs #15893
2015-02-23JS unit tests: equal() => strictEqual()Chris Rebert1-6/+6
[skip validator]
2015-02-23JS unit tests: use QUnit.module() & QUnit.test() everywhereChris Rebert1-21/+21
[skip validator]
2015-02-23JS unit tests: use modern QUnit assert object everywhereChris Rebert1-37/+37
2015-02-11bootstrap onto closurefat1-1/+1
2015-01-20update JS unit tests to future-proof QUnit 1.16.0 APIChris Rebert1-42/+42
[skip validator]
2014-10-29Handle `collapsed` class on triggers even when manually invokedHeinrich Fenkart1-22/+50
Fixes #13636.
2014-10-22Don't fire show event if show is prevented because other element is still ↵Heinrich Fenkart1-0/+35
transitioning Fixes #14844. Closes #14845.
2014-09-09grunt and missing new lineHeinrich Fenkart1-1/+1
2014-09-09ARIA support for collapsePatrick H. Lauke1-2/+65
Added handling of aria-expanded=true/false to collapse.js, updated documentation to include advice on making expand/collapse controls accessible, updated examples and javascript documentation to use aria-expanded and aria-controls (when targetting single collapsible element, using ID rather than class selector) Closes #14147. Closes #14153.
2014-08-18fixes #14282 - Already Visible collapse gets closed when .collapse('show') ↵fat1-0/+32
is called