aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit
AgeCommit message (Collapse)AuthorFilesLines
2022-03-10Carousel: change class check as it can only exist if carousel is slidingGeoSot1-1/+2
Also, fix the corresponding test
2022-03-10Carousel: rename private propertyGeoSot1-4/+4
2022-03-10Carousel: omit redundant checks as we are always transforming the right valuesGeoSot1-4/+0
2022-03-09Carousel: refactor `_slide` method te accept only order as first argumentGeoSot1-20/+15
2022-03-09Carousel: reorder variables and refactor method to use it inlineGeoSot1-8/+8
2022-03-02Add static backdrop to offcanvas (#35832)Jann Westermann1-10/+61
* Add static backdrop option, to offcanvas * Trigger prevented event on esc with keyboard=false * Change offcanvas doc , moving backdrop examples to examples section
2022-03-01Modal: refactor listeners to reduce some code noise (#35902)GeoSot1-2/+2
2022-02-28add testsMark Otto1-0/+49
2022-02-19tests: revisit all tests using Promise.reject instead of throwing an error ↵GeoSot10-72/+72
(#35765)
2022-02-19Make event name helper and use it on tooltip & popover to reduce dist sizes ↵GeoSot2-13/+1
(#35856) * feat: create eventName getter function in baseComponent * refactor: use `eventName` getter on tooltip & popover
2022-02-15Update devDependencies (#35841)XhmikosR5-10/+10
* Update devDependencies * @babel/core ^7.17.0 → ^7.17.2 * @rollup/plugin-replace ^3.0.1 → ^3.1.0 * eslint ^8.8.0 → ^8.9.0 * eslint-config-xo ^0.39.0 → ^0.40.0 * hugo-bin ^0.80.1 → ^0.80.2 * karma ^6.3.15 → ^6.3.16 * rollup ^2.67.1 → ^2.67.2 * Fix new ESLint errors
2022-02-09Remove remaining `.navbar-light` classes (#35814)Julien Déramond1-2/+2
* Fix typo in CSS variables documentation * Drop remaining .navbar-light classes
2022-02-01Fix Popover test that randomly fails on BrowserStack (#35757)GeoSot1-12/+7
Co-authored-by: XhmikosR <[email protected]>
2022-02-01Dropdown: merge instance identification in `dataApiKeydownHandler`GeoSot1-0/+20
As we use the `dataApiKeydownHandler` only for events that are triggered on `[data-bs-toggle="dropdown"]` or on `.dropdown-menu`, we can ensure that their `parentNode` will ALWAYS be the `.dropdown` wrapper
2022-01-30Modal.js: remove unnecessary checks from testGeoSot1-4/+0
2022-01-30Modal: handle click event from backdrop callbackGeoSot1-4/+7
2022-01-30tests: replace 'done' callback with 'Promise' to fix deprecation errors (#35659)GeoSot19-6119/+6700
Reference: https://jasmine.github.io/tutorials/async 'DEPRECATION: An asynchronous function called its 'done' callback more than once. This is a bug in the spec, beforeAll, beforeEach, afterAll, or afterEach function in question. This will be treated as an error in a future version. See<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> for more information.
2022-01-30Event handler: replace deprecated `initEvent`GeoSot2-4/+2
2022-01-13Fix: `isVisible` function behavior in case of a `<details>` element, on ↵Ryan Berliner1-0/+36
chrome 97 (#35682)
2022-01-05Remove explicit use of aria-hidden for offcanvas when closed (#35589)Patrick H. Lauke1-6/+53
Remove explicit use of aria-hidden & visibility for offcanvas when closed, handling it with css Co-authored-by: GeoSot <[email protected]> Co-authored-by: Gaël Poupard <[email protected]>
2021-12-21Carousel: move repeated code to a methodGeoSot1-6/+6
2021-12-15Popover.js: Accept empty content through `data-bs-content` (#35514)GeoSot1-14/+30
Co-authored-by: XhmikosR <[email protected]>
2021-12-10Extract Component config functionality to a separate class (#33872)GeoSot2-47/+78
Co-authored-by: XhmikosR <[email protected]>
2021-12-09Fix tests fixture type (#35501)XhmikosR5-30/+32
Previously we were adding an Array instead of a String
2021-12-09Dropdown: fix toggle focus after dropdown is hidden using the `ESC` button ↵GeoSot1-0/+28
(#35500)
2021-12-09ScrollBar.js. Minor refactoring and add test (#35492)GeoSot1-0/+21
2021-12-07Tooltip: remove title attribute before show & add tests (#35456)GeoSot1-0/+22
2021-12-02Tests: Minor fixes (#35455)Louis-Maxime Piton7-25/+26
2021-12-01Tooltip/Popover: add underscore prefix to protected functionsGeoSot2-35/+35
2021-12-01Tooltip: Change `_enter` & `_leave` to work without argumentsGeoSot1-2/+2
2021-12-01Dropdown: Merge `display='static'` & `isNavbar` functionality activating ↵GeoSot1-5/+5
static popper with no styles attached
2021-12-01Dropdown tests: Use a function to improve readability (#35448)GeoSot1-32/+13
2021-12-01Fix popover arrow & tooltip template after the `setContent` addition (#35441)GeoSot2-0/+31
2021-12-01Tooltip: remove leftover method (#35440)GeoSot1-34/+0
Remove a leftover after #32692 Co-authored-by: XhmikosR <[email protected]>
2021-12-01tests/unit/util/scrollbar.spec.js: rename functionXhmikosR1-6/+6
`parseInt` is a global one.
2021-12-01tests: fix a few typosXhmikosR3-15/+15
2021-12-01tests: remove extra spaces, unneeded arrays and add missing newlinesXhmikosR18-157/+145
2021-12-01tests: tweak Jasmine's matchers usageXhmikosR23-436/+437
Use: * toBeNull * toEqual * toBeTrue * toBeFalse * toHaveSize * toHaveClass
2021-11-29Alert: add a couple more tests (#35419)GeoSot1-0/+28
Co-authored-by: XhmikosR <[email protected]>
2021-11-29BaseComponent: add a couple more tests (#35410)GeoSot1-0/+18
Co-authored-by: XhmikosR <[email protected]>
2021-11-25Clean tooltip component unneeded functionality (#32692)GeoSot1-6/+6
2021-11-25Add test for modal-contentGeoSot1-0/+32
2021-11-25Add a template factory helper to handle all template cases (#34519)GeoSot3-30/+349
Co-authored-by: XhmikosR <[email protected]>
2021-10-13tests: try to fix a few random failures (#35184)GeoSot3-5/+6
* Change `Swipe` dispose spy on EventHandler * Modal hide spy on backdrop hide
2021-10-12Swipe: add test to ensure that it ignores `pinch` events (#35161)GeoSot1-0/+19
2021-10-11Extract Carousel's swipe functionality to a separate Class (#32999)GeoSot2-7/+274
2021-10-08tests: minor cleanup (#35138)XhmikosR18-57/+19
* tests: minor cleanup * tests: use the util noop function
2021-10-07Sanitizer: fix logic and add a test. (#35133)XhmikosR1-0/+25
This was broken in 2596c97 inadvertently. Added a test so that we don't hit this in the future.
2021-10-05Enable `unicorn/no-array-for-each` ruleXhmikosR5-17/+18
2021-09-15Fix Collapse regression of handling toggling between sibling chilldren (#34951)GeoSot1-0/+57