aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/dom/event-handler.spec.js
AgeCommit message (Collapse)AuthorFilesLines
2023-03-29Tweak and re-organize ESLint config (#38369)XhmikosR1-3/+3
* Tweak and re-organize ESLint config * merge individual configs to the root config * enable more eslint-plugin-import rules * lint markdown files * Lint
2022-07-19Fix failing test on EventHandler (#36772)GeoSot1-4/+3
2022-06-30Fix interoperability issue regarding Event properties (#36386)Aleksander Machniak1-0/+37
* Fix interoperability issue regarding Event properties - make possible to re-set read-only event properties - use hydrateObj() to set delegateTarget property Fixes #36207 Co-authored-by: GeoSot <[email protected]> Co-authored-by: Julien Déramond <[email protected]>
2022-02-19tests: revisit all tests using Promise.reject instead of throwing an error ↵GeoSot1-2/+2
(#35765)
2022-01-30tests: replace 'done' callback with 'Promise' to fix deprecation errors (#35659)GeoSot1-256/+285
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.
2021-12-09Fix tests fixture type (#35501)XhmikosR1-1/+1
Previously we were adding an Array instead of a String
2021-12-01tests: tweak Jasmine's matchers usageXhmikosR1-8/+8
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-30Enable a few eslint-config-xo rules (#34620)XhmikosR1-3/+3
* unicorn/prefer-dom-node-append * unicorn/prefer-dom-node-remove
2021-04-19Fix regression for handling `mouseenter`/`mouseleave` events introduced by ↵alpadev1-1/+15
#33310 (#33679) * test: update spec for sibling adjacent mouseenter/mouseleave events there is a regression introduced by #33310 - this would have catched that * fix: fixup regression for mouseenter/mouseleave events introduced by #33310 the old logic only worked for parent-child movement since it checked for the relatedTarget to contain the delegateTarget - this should be fixed with this Co-authored-by: XhmikosR <[email protected]>
2021-04-13fix: make EventHandler better handle mouseenter/mouseleave events (#33310)alpadev1-1/+77
* fix: make EventHandler better handle mouseenter/mouseleave events * refactor: simplify custom events regex and move it to a variable
2020-11-02tests: tweak Jasmine usage (#32046)XhmikosR1-5/+5
* jasmine/expect-matcher * jasmine/prefer-jasmine-matcher Found with `eslint-plugin-jasmine`
2019-10-09Rename "js/tests/units" to "js/tests/unit". (#29503)XhmikosR1-0/+327