Skip to content

tests: cover NSParagraphStyle tab stop handling#471

Merged
fredkiefer merged 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/nsparagraphstyle-tabstops
Jul 12, 2026
Merged

tests: cover NSParagraphStyle tab stop handling#471
fredkiefer merged 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/nsparagraphstyle-tabstops

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

The existing tab stop test covers archiving and a decode regression; this
covers the behaviour: the default twelve tab stops every 28 points and the
zero default interval, setTabStops: sorting the stops by location,
addTabStop: keeping them in order wherever a new stop belongs,
removeTabStop:, and setDefaultTabInterval:.

@DTW-Thalion DTW-Thalion requested a review from fredkiefer as a code owner July 12, 2026 02:26
@DTW-Thalion DTW-Thalion force-pushed the tests/nsparagraphstyle-tabstops branch 2 times, most recently from bc16e29 to 5c080f1 Compare July 12, 2026 17:09
The existing tab stop test covers archiving; this covers the behaviour:
the default twelve tab stops every 28 points and the zero default interval,
setTabStops: sorting the stops by location, addTabStop: keeping them in
order, removeTabStop:, and setDefaultTabInterval:.
@DTW-Thalion DTW-Thalion force-pushed the tests/nsparagraphstyle-tabstops branch from 5c080f1 to 9049e11 Compare July 12, 2026 20:03
tab(CGFloat loc)
{
return [[[NSTextTab alloc] initWithType: NSLeftTabStopType
location: loc] autorelease];

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.

It would be great to use the AUTORELEASE macro here.

@fredkiefer fredkiefer merged commit f22119f into gnustep:master Jul 12, 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