aboutsummaryrefslogtreecommitdiff
path: root/js/tests
AgeCommit message (Collapse)AuthorFilesLines
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 usageXhmikosR24-437/+438
Use: * toBeNull * toEqual * toBeTrue * toBeFalse * toHaveSize * toHaveClass
2021-12-01tests/browsers.js: remove unneeded exportXhmikosR2-10/+3
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-05Use `for...of` in visual tests tooGeoSot4-35/+34
2021-10-05Enable `unicorn/no-array-for-each` ruleXhmikosR6-21/+22
2021-10-05Enable `unicorn/prefer-prototype-methods` ruleXhmikosR3-4/+4
2021-10-04rollup: specify `generatedCode: 'es2015'` (#35070)XhmikosR1-1/+2
This will make use of `const` and modern features (which we are already using in our code) in the generated rollup code.
2021-09-15Fix Collapse regression of handling toggling between sibling chilldren (#34951)GeoSot1-0/+57
2021-09-15Rename `e` to `event` (#34979)XhmikosR6-57/+57
2021-09-13tests: fix lint warning (#34950)GeoSot1-3/+2
2021-09-07Typo fixes (#34914)XhmikosR1-1/+1
2021-09-06BrowserStack: add Firefox 60 and Chrome 60 (#34912)XhmikosR1-1/+15
These are the minimum supported versions, so this patch makes sure everything works there too.
2021-08-30tests: add Offcanvas too in jquery.spec.js (#34841)XhmikosR1-0/+2
2021-08-30Add GitHub SHA in BrowserStack build ID. (#34077)XhmikosR1-1/+1
2021-08-30Move a few ESLint rules where they are needed.XhmikosR1-0/+5
2021-08-30Collapse on toggle, should not hide descendant tabpanels (#34835)GeoSot1-0/+50
2021-08-23visual tests: minor fixes (#34802)XhmikosR4-7/+5
2021-08-10Fix modal when is triggered by `bs-toggle`, to hide other open instances ↵GeoSot1-0/+23
(#34701)
2021-08-03Regression on tooltip template creation process. (#34628)GeoSot2-3/+34
* Regression on tooltip template creation process. * check if template content does not exist, or given argument is empty * call `setContent()` once.
2021-07-30Enable a few eslint-config-xo rules (#34620)XhmikosR9-21/+21
* unicorn/prefer-dom-node-append * unicorn/prefer-dom-node-remove
2021-07-29keep parent only as elementGeoSot1-4/+2
2021-07-28Use a streamlined way to trigger component dismiss (#34170)GeoSot2-4/+108
* use a streamlined way to trigger component dismiss * add documentation Co-authored-by: XhmikosR <[email protected]>
2021-07-28Fix `Manipulator.offset()` (#33603)alpadev1-0/+54
* test: add more test cases for Manipulator.offset() * fix: Manipulator.offset() is using obsolete properties to get scroll position Co-authored-by: XhmikosR <[email protected]> Co-authored-by: GeoSot <[email protected]>
2021-07-27Add shift-tab keyboard support for dialogs (modal & Offcanvas components) ↵Ryan Berliner4-30/+348
(#33865) * consolidate dialog focus trap logic * add shift-tab support to focustrap * remove redundant null check of trap element Co-authored-by: GeoSot <[email protected]> * remove area support forom focusableChildren * fix no expectations warning in focustrap tests Co-authored-by: GeoSot <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2021-07-22handle click event in one place, remove undocumented click listener on ↵GeoSot1-24/+2
element in case of not having the proper markup
2021-07-20Fix `Util.reflow` function and add documentation (#34543)GeoSot1-2/+3
* add documentation to reflow function * refactor to void as it should be Co-authored-by: XhmikosR <[email protected]>
2021-07-19modal: change `data-dismiss` so that it can be outside of a modal using ↵GeoSot1-1/+28
`bs-target` (#33403) * change data-dismiss, so can be outside modal, using a bs-target * Update site/content/docs/5.0/components/modal.md Co-authored-by: Gaël Poupard <[email protected]>
2021-07-05Add horizontal collapse supportMark Otto1-1/+1
2021-06-29Accept argument of different types in the `getInstance` method (#34333)Jeremy Jackson1-0/+14
2021-06-28Changes to Alert component to match the others (#33402)GeoSot1-13/+8
Alert.js: Refactor code to match the other components * Use this._element * Remove handleDismiss method and keep its functionality on event * Change JqueryInterface to be more generic * Correct docs to be aligned with code, and add undocumented functionality * Update alerts.md Co-authored-by: XhmikosR <[email protected]>
2021-06-25Variablize backdrop for modal and offcanvasMark Otto1-34/+50
2021-06-22ScrollSpy: Make Proper use of the SelectorEngineGeoSot1-15/+0
* avoid extra work, creating ids * simplify selectors and constrain search inside `config.target`
2021-06-22Register only one `DOMContentLoaded` event listener in `onDOMContentLoaded` ↵alpadev1-2/+11
(#34158) * refactor: reuse one DOMContentLoaded event listener in onDOMContentLoaded function Instead of adding an event listener everytime the utility function is called, cache the callbacks and execute them all at once. * refactor: drop iife for onDOMContentLoaded Co-authored-by: XhmikosR <[email protected]>
2021-06-22fix(carousel): arrow keys break animation if carousel sliding (#34307)alpadev1-4/+67
2021-06-16Fix carousel buttons (#34266)alpadev1-0/+28
* test(carousel): add test to check if next/prev button work as intended * fix(carousel): merge passed config with instance config in carouselInterface
2021-06-06Refactor scrollbar.js to be used as a Class (#33947)GeoSot3-51/+60
2021-06-03Add `getOrCreateInstance` method in base-component (#33276)GeoSot13-35/+570
Co-authored-by: Rohit Sharma <[email protected]> Co-authored-by: XhmikosR <[email protected]>