aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/modal.js
AgeCommit message (Collapse)AuthorFilesLines
2021-09-15tests: comply to the new rulesXhmikosR1-47/+49
Use `assert.strictEqual`/`assert.true`/`assert.false`
2021-07-25fix(modal): change the order we return from show() method (#34087)alpadev1-0/+26
In case of a modal with fading enabled, a prevented show event can cause show to not showing the modal anymore. See #34055 Co-authored-by: XhmikosR <[email protected]>
2020-11-21Backport #32179 (#32220)Rohit Sharma1-3/+2
Don't hide modal when `config.keyboard` is false
2020-09-21ensure `hidePrevented.bs.modal` can be prevented (#31696)Joakim Riedel1-0/+39
2020-09-10Comply to the new rulesXhmikosR1-4/+4
2020-07-06Backport #30326 (Unit test)ysds1-0/+17
2020-06-04Backport #30936XhmikosR1-0/+17
Add role="dialog" in modals via JavaScript
2020-05-12Backport d59de33 from #30772XhmikosR1-0/+39
Add a test about the scrollbar issue on non-integer width
2020-05-12Minor lint tweaks and rules cleanupXhmikosR1-1/+0
2020-05-12tests: switch to strictEqual/notStrictEqualXhmikosR1-5/+5
2020-02-17Backport #29886Giovanni Mendoza1-0/+49
Close modal with keyboard=true & backdrop=static
2019-11-02backport #29516: added animation when modal backdrop is staticJohann-S1-0/+22
2019-07-31Backport #29155Johann-S1-0/+21
allow dynamic modal body for scrollable modals
2019-04-29fix unit tests for chrome mobileJohann-S1-1/+1
2019-02-06fix modal test to be sure we call getTransitionDurationFromElementJohann-S1-10/+5
2019-01-20Scrollable modal (#27769)Shohei Yoshida1-0/+27
2018-12-23getSelectorFromElement return null on bad selectors (#27912)Johann-S1-24/+21
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