LearnNewsExamplesServices
Frontmatter
id8059
title[DomEvent] Add Unit Tests for fire() and Cleanup
stateClosed
labels
airefactoringtesting
assigneestobiu
createdAtDec 8, 2025, 10:13 AM
updatedAtDec 8, 2025, 10:14 AM
githubUrlhttps://github.com/neomjs/neo/issues/8059
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 8, 2025, 10:14 AM

[DomEvent] Add Unit Tests for fire() and Cleanup

Closed v11.17.0 airefactoringtesting
tobiu
tobiu commented on Dec 8, 2025, 10:13 AM

Create a new test file test/playwright/unit/manager/domEvent/Fire.spec.mjs to provide comprehensive unit tests for Neo.manager.DomEvent.fire().

Coverage:

  • Standard event firing on a listener component.
  • Event bubbling (Child -> Parent).
  • Stopping propagation (cancelBubble).
  • Listener configuration bubble: false.
  • Event delegation support.

Cleanup:

  • Remove the unused findComponentReference method from src/manager/DomEvent.mjs.
tobiu added the ai label on Dec 8, 2025, 10:13 AM
tobiu added the refactoring label on Dec 8, 2025, 10:13 AM
tobiu added the testing label on Dec 8, 2025, 10:13 AM
tobiu assigned to @tobiu on Dec 8, 2025, 10:13 AM
tobiu referenced in commit f8bbe27 - "[DomEvent] Add Unit Tests for fire() and Cleanup #8059" on Dec 8, 2025, 10:14 AM
tobiu closed this issue on Dec 8, 2025, 10:14 AM