Skip to content

tests: add NSPopUpButtonCell tests#486

Open
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/nspopupbuttoncell-menu
Open

tests: add NSPopUpButtonCell tests#486
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/nspopupbuttoncell-menu

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

NSPopUpButtonCell had no tests. This covers its menu model: the defaults,
adding/inserting/removing titled items, the automatic selection of the
first item, the way a duplicate title moves the existing item rather than
adding another, the item and index queries (indexOfItemWithTitle:/Tag:
return -1 when absent), selection by index and by title, and the
pull-down/autoenable/preferred-edge/arrow-position accessors. 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 15:32
@DTW-Thalion DTW-Thalion force-pushed the tests/nspopupbuttoncell-menu branch 3 times, most recently from 92d82f8 to 4144ea7 Compare July 12, 2026 20:41
Cover the menu model: the defaults, adding/inserting/removing titled
items, the automatic first-item selection, duplicate-title handling, the
item and index queries, selection, and the pull-down/autoenable/edge/
arrow-position accessors.
@DTW-Thalion DTW-Thalion force-pushed the tests/nspopupbuttoncell-menu branch from 4144ea7 to 2267764 Compare July 12, 2026 20:49
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.

1 participant