aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/modal.js
AgeCommit message (Collapse)AuthorFilesLines
2018-12-05Add aria-modal to modals (#27780)Patrick H. Lauke1-0/+17
Dynamically set/remove `aria-modal="true"` when a modal is shown/hidden
2018-11-25Add test to make sure we enforce focus on modal (#27723)Johann-S1-0/+41
2018-10-30fix dispose modal unit testJohann-S1-3/+8
2018-10-30test(Modal): check if modal is disposedAndrew Luca1-0/+33
2018-10-28calculate modal transition duration based on modal-dialog elementJohann-S1-0/+46
2018-10-21test(Modal): reuse _getScrollbarWidth in testsAndrew Luca1-8/+1
2018-09-13throw error when folks try to use a bad selectorJohann-S1-21/+25
2018-07-11fix(modal): fix unit test and resetting styleJohann-S1-1/+2
2018-07-11fix(modal): removes .navbar-toggler marginCatalin Zalog1-42/+0
2018-05-22chore(deps): update qunit and karma-qunitJohann-S1-0/+1
2018-01-11Comply to the new rules.XhmikosR1-8/+11
2017-11-23Allow us to run our unit test on differents jquery versionJohann-S1-0/+2
2017-10-04Update modal.jsXhmikosR1-1/+4
2017-10-04Unit test for modal bug fixlucascono1-0/+13
Unit test for pull request #24240
2017-09-03Merge branch 'v4-dev' into fix-jumping-modal-on-resizeJohann-S1-1/+27
2017-08-29Add failing testDavid Bailey1-0/+14
2017-08-29Fix unit tests in PhantomJSDavid Bailey1-3/+10
Use a virtual scrollbar as this is simpler than having a real one (overflow: scroll doesn't seem to work in Phantom), and disable it for the new test. One test has also been altered to prevent erroneous fails when other inline styles are added to the body (e.g. overflow).
2017-08-28Add failing testDavid Bailey1-0/+19
When the body does not overflow (achieved by hiding the QUnit container), it should not be given a margin.
2017-08-25Add unit test for xss in data target attributemeeque1-0/+36
2017-08-25Fix sticky margin when a modal is opened (#23669)David Bailey1-0/+42
* Adjust margin for sticky elements on modal Previously white space was visible to the right of sticky elements due to right padding being added to the body. This fixes #23661. * Add unit tests for margin of sticky elements on modal
2017-08-23Tweak ESLint rules.XhmikosR1-4/+4
2017-04-03Fix #22332: Adjust tests for hidden scrollbarIlias1-3/+15
2017-04-02Fix #18373: properly adjust padding-right of body and fixed elements when ↵Ilias1-28/+95
opening or closing modal
2017-01-02update seletors in jsMark Otto1-4/+4
2016-11-26Merge branch 'v4-dev-18796' of https://github.com/maxbeatty/bootstrap into ↵Mark Otto1-0/+22
maxbeatty-v4-dev-18796
2016-11-25Add test unit to check logic of ignoreBackdropClick (#18245)Johann1-0/+13
2016-11-24Make JS compliant with the new ESLint rules.Bardi Harborow1-2/+2
2016-10-28Merge pull request #17536 from Johann-S/testPaddingMark Otto1-0/+38
[Fix #17400] Add tests about padding restoration
2016-08-04prevent navigating to area href when modal target. fixes #18796Max Beatty1-0/+22
2016-05-11Handle aria-hidden on modal container when showing/hidingPatrick H. Lauke1-0/+17
Fixes #19878
2015-12-22js/tests/unit/modal.js: Fix typoChris Rebert1-1/+1
[ci skip]
2015-10-02Add throw error for undefined method on pluginsJohann-S1-0/+12
2015-09-10Add tests about padding restorationJohann-S1-0/+38
2015-05-10add getters for Version and Default where applicablefat1-1/+1
add modal my gawd
2015-05-06remove closureness from pluginsfat1-75/+174
2015-02-11bootstrap onto closurefat1-1/+1
2015-01-20tweak 'close reopened modal' unit test to work under new QUnit APIChris Rebert1-2/+7
2015-01-20update JS unit tests to future-proof QUnit 1.16.0 APIChris Rebert1-42/+42
[skip validator]
2014-10-09fixes #13816 Modal dialog closes when dragging and releasing mouse button ↵fat1-2/+2
outside dialog
2014-07-30Revert "Use mousedown instead of click for backdrop click detection; fixes ↵Heinrich Fenkart1-2/+2
#13816"
2014-07-06Clean modal unit tests upHeinrich Fenkart1-84/+63
2014-07-06Merge pull request #13855 from hnrch02/modal-mousedownJacob1-2/+2
Use mousedown instead of click for backdrop click detection; fixes #13816
2014-07-01Only close modal if escape was hit with keydown; fixes #13929Heinrich Fenkart1-0/+38
2014-07-01Use mousedown instead of click for backdrop click detection; fixes #13816Heinrich Fenkart1-2/+2
2014-06-07Merge pull request #13388 from twbs/xhmikosr-js-styleXhmikosR1-2/+3
Improve JS style
2014-06-06Merge pull request #13627 from twbs/maybe-fix-12364Chris Rebert1-0/+51
Hopefully fixes trigger focus restoration on modal close
2014-06-06Comply to the new style.XhmikosR1-2/+3
2014-05-19Hopefully a fix for #12364Chris Rebert1-0/+51
* register the callback before invoking the toggling * listen for `hidden` instead of `hide` * account for the possibility of the associated `show` event being preventDefault-ed Adds relevant unit tests.
2014-05-19fix typo in assertion descriptionChris Rebert1-1/+1
2014-04-21#11464 - Fix JS noConflict mode - Refactor all plugins to use an internal ↵Collin Donahue-Oponski1-23/+32
reference to the jQuery plugin, because in noConflict mode you can never expect to be defined on the jQuery object