aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/dom/selector-engine.spec.js
AgeCommit message (Collapse)AuthorFilesLines
2024-02-18Selector Engine: fix multiple IDs (#39201)GeoSot1-0/+12
* fix: regression of #38989 * Add unit test in selector-engine.spec.js --------- Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2023-09-13Fix collapse multiple ids target (#38989)Louis-Maxime Piton1-0/+12
2023-03-29Tweak and re-organize ESLint config (#38369)XhmikosR1-2/+2
* Tweak and re-organize ESLint config * merge individual configs to the root config * enable more eslint-plugin-import rules * lint markdown files * Lint
2022-11-06Move `getElementFromSelector` & `getSelectorFromElement` to SelectorEngine ↵GeoSot1-2/+156
(#36027) * Move `getElementFromSelector` & getSelectorFromElement` inside selector-engine.js, in order to use SelectorEngine methods, avoiding raw querySelector usage * add `getMultipleElementsFromSelector` helper Co-authored-by: Julien Déramond <[email protected]>
2022-07-18Fix typos in code (#36763)Marc Wrobel1-1/+1
Shoutout is correct but has been replaced by its more common form : Shout-out (https://www.merriam-webster.com/dictionary/shout-out).
2022-07-04ref(tests): Minor fix to use self-closing input HTML tag (#36667)Julien Déramond1-1/+1
2021-12-09Fix tests fixture type (#35501)XhmikosR1-12/+16
Previously we were adding an Array instead of a String
2021-12-01tests: remove extra spaces, unneeded arrays and add missing newlinesXhmikosR1-12/+4
2021-12-01tests: tweak Jasmine's matchers usageXhmikosR1-1/+1
Use: * toBeNull * toEqual * toBeTrue * toBeFalse * toHaveSize * toHaveClass
2021-10-08tests: minor cleanup (#35138)XhmikosR1-2/+0
* tests: minor cleanup * tests: use the util noop function
2021-07-27Add shift-tab keyboard support for dialogs (modal & Offcanvas components) ↵Ryan Berliner1-0/+82
(#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]>
2020-12-07Remove `SelectorEngine.matches()`. (#32339)XhmikosR1-8/+0
It's basically unused.
2020-03-25fix: remove make array util function (#30430)Johann-S1-6/+5
2020-03-23Use next dropdown menu instead of first of the parentMartijn Cuppens1-0/+39
2020-03-09`prev()` function fails when non-element nodes are present (#30117)Martijn Cuppens1-0/+15
The `prev()` function doesn't take nodes other than elements into account. Also we could simplify things a lot using the `previousElementSibling` property. This property isn't fully supported in IE, it only works for elements, but since the `element` variable is an element, we can safely use it here. I've also added an additional test. I don't think we had this issue in v4, since we relied on jQuery back then. Ref. https://developer.mozilla.org/en-US/docs/Web/API/NonDocumentTypeChildNode/nextElementSibling
2019-10-09Rename "js/tests/units" to "js/tests/unit". (#29503)XhmikosR1-0/+115