aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit
AgeCommit message (Collapse)AuthorFilesLines
2015-03-03add role="button" to a[data-toggle="collapse"]; fixes #15972Chris Rebert1-25/+25
2015-03-03Merge pull request #15961 from kkirsche/ImplementAssertExpectHeinrich Fenkart11-4/+196
[Fixes #15953] Implement assert.expect in each unit test
2015-03-03[Fixes #15953] Implement assert.expect in each unit testKevin Kirsche11-4/+196
[Fixes #15953] Implement `assert.expect` in each unit test
2015-03-03Modal: Fix backdrop not readjusting when height changesHeinrich Fenkart1-2/+2
Fixes #15136. Closes #15345. Closes #15314. Refs #14724, #14927.
2015-03-02Disable es3 for tests and customizer.js.XhmikosR1-0/+1
2015-03-01Merge pull request #15593 from ↵Chris Rebert1-0/+38
neoeno/handle_multiple_zero_offset_scrollspy_elements Handle multiple zero-offset Scrollspy elements.
2015-03-01Handle multiple zero-offset Scrollspy elements.Caden Lovelace1-0/+38
When the first two elements in a scrollspy content block have a document offset of zero (i.e. they're hard against the top of the page), Scrollspy would switch between them on every scroll event. This could happen, for example, in a system of nested sections: ``` <section id="animals"> <section id="dogs"> Content </section> </section> ``` This ocurred because Scrollspy's check to see if it's at the end of the array of sections uses `!arr[index]`. This misses the case where `arr[index]` does exist and is zero. This commit explicitly checks the array bounds.
2015-03-01Merge branch 'master' into v4Mark Otto7-237/+382
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-25QUnit.jsDump => QUnit.dumpChris Rebert1-2/+2
Refs http://qunitjs.com/upgrade-guide-2.x/#replace-qunit-jsdump-with-qunit-dump
2015-02-26Unit tests: Use new names of module hooksHeinrich Fenkart11-22/+22
Refs #15893
2015-02-26Modal: Apply any preexisting body padding again after closingnakupanda1-0/+77
2015-02-26Dropdowns: Skip `.disabled` instead of `.divider` on keydown eventvsn4ik1-0/+21
Fixes #15147. Closes #15520 by merging it.
2015-02-24fix 2 typos in modal unit test assertion messagesChris Rebert1-2/+2
2015-02-25Dropdown unit tests: Tiny style changesHeinrich Fenkart1-3/+5
2015-02-24Merge pull request #15904 from kkirsche/patch-8Chris Rebert1-0/+47
Closes #15904
2015-02-24Add unit test of aria-expanded to dropdown suiteKevin Kirsche1-0/+47
Redo of #15876
2015-02-24Add tests for aria-hidden of modalKevin Kirsche1-0/+26
Add tests for `aria-hidden` of modal Use strictEqual of 1 here instead of 2 asserts
2015-02-23JS unit tests: equal() => strictEqual()Chris Rebert7-90/+90
[skip validator]
2015-02-23JS unit tests: use QUnit.module() & QUnit.test() everywhereChris Rebert11-204/+204
[skip validator]
2015-02-23JS unit tests: use modern QUnit assert object everywhereChris Rebert11-504/+504
2015-02-11kill affixfat1-101/+0
2015-02-11bootstrap onto closurefat5-71/+19
2015-01-28Merge pull request #15496 from twbs/15484-alternativeChris Rebert2-0/+13
Make $(document).tooltip({...}) without a `selector` throw an error
2015-01-21Merge branch 'master' into v4Chris Rebert11-228/+233
2015-01-20tweak 'close reopened modal' unit test to work under new QUnit APIChris Rebert1-2/+7
2015-01-20fix bug in tab show/shown relatedTarget unit testChris Rebert1-1/+1
2015-01-20update JS unit tests to future-proof QUnit 1.16.0 APIChris Rebert11-226/+226
[skip validator]
2015-01-05Make $(document).tooltip({...}) without a `selector` throw an errorChris Rebert2-0/+13
Closes #15484
2015-01-03Merge branch 'master' into v4Mark Otto2-54/+31
Conflicts: Gruntfile.js dist/css/bootstrap-theme.css dist/css/bootstrap-theme.css.map dist/css/bootstrap-theme.min.css dist/css/bootstrap.css dist/css/bootstrap.css.map dist/css/bootstrap.min.css dist/js/bootstrap.min.js docs/_data/glyphicons.yml docs/_includes/components/alerts.html docs/_includes/components/badges.html 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/input-groups.html docs/_includes/components/jumbotron.html docs/_includes/components/labels.html docs/_includes/components/list-group.html docs/_includes/components/media.html docs/_includes/components/navbar.html docs/_includes/components/navs.html docs/_includes/components/page-header.html docs/_includes/components/pagination.html docs/_includes/components/panels.html docs/_includes/components/progress-bars.html docs/_includes/components/responsive-embed.html docs/_includes/components/thumbnails.html docs/_includes/components/wells.html docs/_includes/css/buttons.html docs/_includes/css/code.html docs/_includes/css/forms.html docs/_includes/css/grid.html docs/_includes/css/helpers.html docs/_includes/css/images.html docs/_includes/css/less.html docs/_includes/css/tables.html docs/_includes/css/type.html docs/_includes/customizer-variables.html docs/_includes/getting-started/accessibility.html docs/_includes/getting-started/disabling-responsiveness.html docs/_includes/getting-started/download.html docs/_includes/getting-started/whats-included.html docs/_includes/js/alerts.html docs/_includes/js/buttons.html docs/_includes/js/carousel.html docs/_includes/js/collapse.html docs/_includes/js/modal.html docs/_includes/js/overview.html docs/_includes/js/popovers.html docs/_includes/js/tabs.html docs/_includes/js/tooltips.html docs/_includes/nav/components.html docs/_includes/nav/javascript.html docs/_jade/customizer-variables.jade docs/_layouts/default.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/customize.html docs/dist/css/bootstrap-theme.css.map docs/dist/css/bootstrap.css docs/dist/css/bootstrap.css.map docs/dist/css/bootstrap.min.css less/glyphicons.less less/mixins/vendor-prefixes.less less/navbar.less less/popovers.less less/tables.less less/theme.less less/tooltip.less less/variables.less package.json scss/_carousel.scss scss/_close.scss scss/_forms.scss test-infra/npm-shrinkwrap.json
2014-12-29Revert "Allow multiple delegated tooltip selectors on a node"Chris Rebert2-61/+0
This reverts commit 1b3237629a316af41945e20837cf3a332798b264. This reverts PR #14189 because it caused major regressions. Fixes #15168. We'll try to revisit #14167's feature request in Bootstrap v4. [skip validator]
2014-12-29Remove semicolons from #15425 because fatChris Rebert1-3/+3
2014-12-29Add regression test for #14244.Chris Rebert1-0/+38
Special thanks to @programcsharp [skip validator]
2014-12-29update JS to use .{tooltip,popover}-{left,right,top,bottom}Chris Rebert1-12/+12
2014-12-29rename .arrow => .popover-arrowChris Rebert1-1/+1
2014-12-17rename .item => .carousel-itemChris Rebert1-76/+76
2014-11-28Fix copy/paste errorDan Dascalescu1-1/+1
2014-11-20fix affix-top unit test to properly clean up after itselfChris Rebert1-0/+1
2014-11-17add unit test for affix-top for padding issueNick O'Donoghue1-0/+29
2014-11-15add unit tests for Carousel's 'wrap' optionChris Rebert1-0/+153
2014-11-12Dropdown: ignore keydown events coming from `input`s and `textarea`sHeinrich Fenkart1-0/+41
Fixes #15084.
2014-11-04Have Carousel ignore keyboard events from <input>s or <textarea>s; fixes #14991Chris Rebert1-0/+42
2014-10-29Handle `collapsed` class on triggers even when manually invokedHeinrich Fenkart1-22/+50
Fixes #13636.
2014-10-29Merge pull request #14457 from hnrch02/button-set-val-after-event-loopHeinrich Fenkart1-5/+5
Change value of stateful button after event loop
2014-10-27Increase timeouts in tooltip unit tests to avoid spurious Sauce failuresChris Rebert1-31/+31
Fixes #14851
2014-10-26Remove faulty unit test from 9740d8bHeinrich Fenkart1-30/+0
This would only work with transitions but since we disable them for unit tests, this delivers unreliably results.
2014-10-26Follow-up to 9740d8b: fix small typoHeinrich Fenkart1-1/+1
2014-10-26Fix tooltip occasionally not hiding when using a hide delayPhil Hughes1-0/+30
Fixes #14375. Closes #14519 by merging it.
2014-10-26Allow multiple delegated tooltip selectors on a nodeAndrew S. Brown2-0/+75
Fixes #14167. Closes #14189 by merging it.
2014-10-26Follow-up to e8af21c: rm unused variable in unit testHeinrich Fenkart1-1/+1