aboutsummaryrefslogtreecommitdiff
path: root/js/tests
AgeCommit message (Collapse)AuthorFilesLines
2015-09-28Documentation clean up and consistency; closes #17625Baraa Hamodi1-0/+1
[skip sauce]
2015-07-27Fix triggering of {shown,hidden}.bs.dropdown events so relatedTarget gets ↵Johann-S1-0/+32
set properly Fixes #16828 Closes #16865
2015-07-02Removes unnecessary period at end of commentMelinda Sarnicki Bernardo1-1/+1
2015-06-02generalize dropdowns / drop role="menu"Patrick H. Lauke4-62/+62
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-10Update jQuery to v1.11.3.XhmikosR1-5/+5
2015-05-05phantom.js: switch to unicode characters that work on Windows too.XhmikosR1-2/+2
2015-05-05Comply to the new JSCS rules.XhmikosR1-9/+9
2015-05-04Merge pull request #16014 from redbmk/issue-16008Chris Rebert1-0/+38
Multiple tooltip triggers don't play well together
2015-05-03Merge pull request #16404 from patrickhlauke/radio-checkbox-kbd-toggle-fixPatrick H. Lauke1-13/+0
Fix radio and checkbox keyboard handling in .btn-group
2015-05-02Fix issue where affixed element has incorrect positioningCarlo Stearns1-0/+317
when used with a sticky footer layout. Adds visual test for affix with sticky footer. Closes #15694. Refs #15032.
2015-05-01Remove broken/vestigial unit testPatrick H. Lauke1-13/+0
Overall logic for this test appears broken, possibly relating to an older version of Bootstrap that did not require explicit `data-toggle="button"` on single toggle buttons?
2015-04-27Multiple tooltip triggers don't play well togetherBraden M. Kelley1-0/+38
Fixes issue #16008
2015-04-27Merge pull request #16152 from jarthod/tooltip-placement-viewport-fixF A T1-12/+33
Tooltip/popover: Fix auto placement to use viewport
2015-04-27Set `box-sizing: border-box` on .container-viewport in #16142 testcaseChris Rebert1-0/+1
Otherwise, the test doesn't properly fail when the fix is reverted.
2015-04-27Compare tooltip right offset to viewport right offset (and not width)Adrien1-0/+27
Closes #16142 by merging it.
2015-04-25Throw error when tooltip/popover template has multiple top-level elementsChris Rebert2-0/+21
Closes #16219.
2015-04-21Allow viewport option to be a functionAdrien Siami1-0/+31
Closes #16151 by merging a rebased version of it that adds docs and 1 more assertion.
2015-04-21Merge pull request #16147 from Johann-S/event_insertedChris Rebert2-0/+31
Fixes #16124.
2015-04-11Fix existing radio button unit testPatrick H. Lauke1-2/+2
2015-04-08Add event after template insertedJohann-S2-0/+31
2015-03-29fixed IE incompatible CSSAdrien Jarthon1-1/+1
2015-03-29Added non-regression test & fixed existing oneAdrien Jarthon1-12/+33
2015-03-25rm redundant aria-hidden usage from Modals; fixes #16020Chris Rebert2-29/+1
2015-03-24Merge pull request #15987 from twbs/fix-15972Chris Rebert3-30/+30
add role="button" to a[data-toggle="collapse"]
2015-03-21Fix #16072: Clicking into input field within dropdown no longer closes the ↵Emmanuel Bourgerie1-0/+38
dropdown Closes #16073 by merging it
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 Rebert10-64/+104
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-09Merge pull request #16011 from twbs/fix-15315Chris Rebert1-4/+31
.collapse('hide') on hidden uninit-ed collapsible no longer shows it
2015-03-07add togglable scrollbar-inducing content to Modal visual testChris Rebert1-0/+18
2015-03-07add static navbar to Modal visual testChris Rebert1-0/+23
2015-03-06Merge pull request #15999 from twbs/kkirsche-includeTestsReadmeChris Rebert1-0/+61
Document JS test suite basics
2015-03-06[Fixes #15951] Document JS test suite basicsKevin Kirsche1-0/+61
X-Ref: #15953 Closes #15952 by merging a tweaked version of it. [skip sauce] [skip validator]
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-03add role="button" to a[data-toggle="collapse"]; fixes #15972Chris Rebert3-30/+30
2015-03-03Merge pull request #15961 from kkirsche/ImplementAssertExpectHeinrich Fenkart12-4/+198
[Fixes #15953] Implement assert.expect in each unit test
2015-03-03[Fixes #15953] Implement assert.expect in each unit testKevin Kirsche12-4/+198
[Fixes #15953] Implement `assert.expect` in each unit test
2015-03-03Modal: Fix backdrop not readjusting when height changesHeinrich Fenkart2-4/+38
Fixes #15136. Closes #15345. Closes #15314. Refs #14724, #14927.
2015-03-02Merge pull request #15970 from twbs/the-future-is-now-qunitChris Rebert1-0/+28
Disable deprecated QUnit global methods
2015-03-02Disable es3 for tests and customizer.js.XhmikosR1-0/+1
2015-03-01Disable deprecated global QUnit method aliases to prevent backsliding on ↵Chris Rebert1-0/+28
QUnit v2 readiness
2015-03-01Merge pull request #15955 from twbs/fixture-on-screen-iosChris Rebert1-6/+11
Unit tests: Only display fixture on-screen for iOS
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-01Unit tests: Only display fixture on-screen for iOSHeinrich Fenkart1-6/+11
Since only on iOS tests fail when the fixture is displayed off-screen, see https://travis-ci.org/twbs/bootstrap/jobs/52605742
2015-03-01Use different way to make failing test more visible in SauceHeinrich Fenkart1-4/+0
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