aboutsummaryrefslogtreecommitdiff
path: root/js/tests
AgeCommit message (Collapse)AuthorFilesLines
2016-05-30Fix load & scroll event usage in ScrollSpy tests (#19986)Chris Rebert1-7/+7
* Use $.one() instead of $.on() since there are no $.off()s in the code. * Remove unnecessary namespacing of listeners for the `scroll` & `load` events. These are vanilla DOM events (not custom jQuery namespaced events) and we're not using jQuery namespacing to manage these event listeners either (e.g. `$.off()`). [skip validator]
2016-05-29js/tests/unit/scrollspy.js: Fix "offsed" typos (#19985)Chris Rebert1-2/+2
[skip sauce] [skip validator]
2016-05-26Update jQuery to v2.2.4.XhmikosR1-4/+4
2016-05-11Handle aria-hidden on modal container when showing/hidingPatrick H. Lauke1-0/+17
Fixes #19878
2016-03-19Update jQuery to v2.2.2.XhmikosR1-4/+4
2016-02-27JS visual tests: Remove usages of defunct .page-header classChris Rebert9-27/+9
[skip sauce]
2016-02-27Update tether to v1.2.0.XhmikosR1-2/+1
[skip sauce] [skip validator]
2016-02-19Fix validation errors.XhmikosR2-2/+2
[skip sauce]
2016-02-16Visual/manual test for checkbox/radio button kbd behaviorPatrick H. Lauke1-0/+5
2016-02-16js/tests/index.html: Replace jQuery event alias methods with functions that ↵Chris Rebert1-1/+4
throw explanatory errors, instead of with undefined Refs https://github.com/twbs/bootstrap/pull/19219#issuecomment-184653699 [skip validator]
2016-02-01Carousel - Do not prevent on keydown for input and textareaJohann-S1-0/+32
2016-01-14Button toggling - trigger change event on inputKotas Vlastimil1-0/+20
Bootstrap’s .button styles can be applied to other elements, such as labels, to provide checkbox or radio style button toggling. When the checkbox or radio state is changed, there should be triggered the change event. Currently, the change event is triggered on the Button, which is not correct. Only input fields do support the change event.
2015-12-24Merge pull request #18638 from twbs/fix-18365Chris Rebert1-0/+43
Modal: Ignore spurious focus event that Firefox fires at document when switching back to its tab
2015-12-22Add visual test for #18365Chris Rebert1-0/+43
See also https://bugzilla.mozilla.org/show_bug.cgi?id=1228802
2015-12-22js/tests/unit/modal.js: Fix typoChris Rebert1-1/+1
[ci skip]
2015-12-03tests: bump QUnit to v1.20.0.XhmikosR2-1783/+2123
[skip validator]
2015-11-19Remove stray </p> from js/tests/visual/scrollspy.htmlChris Rebert1-1/+0
[skip sauce]
2015-10-26Remove html5shiv and respond.js from test files.XhmikosR10-73/+0
2015-10-24Switch to jQuery 2.1.4.XhmikosR1-5/+4
Now that we don't support IE 8 it's safe to do that.
2015-10-11Use Page Visibility API in Carousel; fixes #17706Johann-S1-1/+9
Avoids cycling carousels when the page isn't visible. Closes #17710 Refs #15566
2015-10-02Add throw error for undefined method on pluginsJohann-S8-0/+96
2015-09-11fix resetting style on closing collapseJohann-S1-0/+15
2015-09-10Add tests about padding restorationJohann-S1-0/+38
2015-08-31Accept elements as the tooltip / popover contentGleb Mazovetskiy2-0/+65
When a DOM node is passed to an HTML tooltip, the `title` node is only moved if it is not already in the tooltip. Otherwise, `empty()` is used instead of `detach()` before appending the `title` to avoid memory leaks. If a DOM node is passed to a plain text tooltip, its text is copied via jQuery `.text()`. Replaces `.detach()` with `.empty()`, as `.detach()` is almost never useful but instead leaks memory. The difference between `empty` and `detach` is that the latter keeps all the attached jQuery events/data. However, since we do not return the previous children, the user would have to keep these themselves, thus they can `detach()` if necessary. This is a port of https://github.com/twbs/bootstrap/pull/14552 to v4.
2015-08-27Update QUnit to v1.18.0.XhmikosR2-221/+1185
2015-08-27Remove the obsolete JSHint references.XhmikosR1-6/+0
2015-08-21Docs: Update all dropdowns to new HTML structureHeinrich Fenkart1-4/+4
2015-08-18rewrite tab with new active shitJacob Thornton2-28/+28
2015-08-18Merge branch 'v4' of github.com:twbs/derpstrap into v4Jacob Thornton1-30/+29
2015-08-18some minor alert shitJacob Thornton1-17/+16
2015-08-18fix modal visual example for jsJacob Thornton1-27/+30
2015-08-18fix dropdown js visual exampleJacob Thornton1-58/+62
2015-08-18js tests passing + eslintJacob Thornton1-14/+11
2015-08-18add polyfil for bind for tether.jsJacob Thornton1-0/+32
2015-08-18use proxy not bind in alertJacob Thornton1-317/+0
2015-08-12get the js working for docsJacob Thornton1-2/+2
2015-08-04Merge branch 'master' into v4mMark Otto2-1/+33
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-18Merge branch 'master' into v4Mark Otto6-47/+374
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-13al tests passing, dist rebuilt, w/typecheckerfat1-1/+3
2015-05-13add simple type checker implementationfat1-0/+30
2015-05-13fix up testsfat1-72/+72
2015-05-13fix #15301fat1-0/+45
2015-05-13address https://github.com/twbs/bootstrap/pull/16135fat1-0/+86
2015-05-13implement global dispose methodfat2-3/+3
2015-05-12update attachment -> placementfat1-4/+4
2015-05-12grunt test-js, grunt dist-js now workingfat1-1/+1