aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit
AgeCommit message (Collapse)AuthorFilesLines
2015-03-10Fixed proper navigation element selection on backward scrolling (from the ↵Maxim Andrukhovych1-0/+46
bottom to the top)
2015-03-09Disable jQuery event aliases when running test suiteChris Rebert9-64/+64
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-03Hiding an uninitialized tooltip/popover no longer initializes it; fixes #15874Chris Rebert2-0/+24
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-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-01-28Merge pull request #15496 from twbs/15484-alternativeChris Rebert2-0/+13
Make $(document).tooltip({...}) without a `selector` throw an error
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
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-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
2014-10-26Clear scrollspy selection above first sectionTadeu Zagallo1-1/+42
Closes #13563 by merging it.
2014-10-26Tabs plugin accessibilityCameron Little1-0/+24
Added support for `aria-expanded` toggling via JavaScript. Added `aria-controls`, `aria-expanded`, `aria-labelledby` to tabs docs. Added `aria-expanded` unit test for the tabs plugin. See also #13554. Closes #14154 by merging it.
2014-10-22Fix IE8 unit test breakage introduced by #14767Heinrich Fenkart1-2/+6
2014-10-22Implement `hide` and `hidden` events for tabsPhil Hughes1-0/+77
Closes #14772.