Skip to content

Avoid "fake markers" in DecorationService.test.ts.#5964

Merged
Tyriar merged 4 commits into
xtermjs:masterfrom
PerBothner:decoration-test
May 31, 2026
Merged

Avoid "fake markers" in DecorationService.test.ts.#5964
Tyriar merged 4 commits into
xtermjs:masterfrom
PerBothner:decoration-test

Conversation

@PerBothner

Copy link
Copy Markdown
Contributor

It is better to test the actual Marker implementation in the context of the actual Buffer implementation, instead of constructing "fake Markers". For one, it works with the PR #5853 re-implenation of markers.

Instead we use an actual Marker in an actual Buffer.
Comment thread src/common/services/DecorationService.test.ts Outdated

@Tyriar Tyriar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep that's what I meant 👍

@Tyriar Tyriar merged commit 936442c into xtermjs:master May 31, 2026
12 checks passed
@PerBothner PerBothner deleted the decoration-test branch May 31, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants