Skip to content

tests: add NSTextView typing-attributes tests#490

Merged
fredkiefer merged 2 commits into
gnustep:masterfrom
DTW-Thalion:tests/nstextview-typingattributes
Jul 13, 2026
Merged

tests: add NSTextView typing-attributes tests#490
fredkiefer merged 2 commits into
gnustep:masterfrom
DTW-Thalion:tests/nstextview-typingattributes

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

NSTextView had no coverage of its typing attributes. This adds tests for
the typing attributes and related state: the defaults (editable,
selectable, rich text, field editor, draws background), that the typing
attributes carry a font and a foreground colour, the string, the way
setFont: and setTextColor: update the typing attributes,
setTypingAttributes:, and the editable/selectable coupling (an editable
view is always selectable; a non-selectable one is not editable). The
asserted defaults and behaviours were checked against a macOS runner. No
source changes; all assertions pass.

@DTW-Thalion DTW-Thalion requested a review from fredkiefer as a code owner July 12, 2026 16:18
@DTW-Thalion DTW-Thalion force-pushed the tests/nstextview-typingattributes branch 3 times, most recently from 2412678 to 4cc84e8 Compare July 12, 2026 20:41
Cover the typing attributes and related state: the defaults, the string,
the way setFont: and setTextColor: update the typing attributes,
setTypingAttributes:, and the editable/selectable coupling.
@DTW-Thalion DTW-Thalion force-pushed the tests/nstextview-typingattributes branch from 4cc84e8 to faaa2da Compare July 12, 2026 20:49
@fredkiefer fredkiefer merged commit 6bc3b9b into gnustep:master Jul 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants