aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/dom/selector-engine.spec.js
AgeCommit message (Collapse)AuthorFilesLines
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