Skip to content

test(msdf): add tests for MsdfSpriteText presence behavior - #3

Merged
isrcalebe merged 1 commit into
developfrom
msdf-tests
Sep 21, 2026
Merged

isrcalebe merged 1 commit into
developfrom
msdf-tests

Conversation

@isrcalebe

@isrcalebe isrcalebe commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Adds headless tests covering the presence and sizing behaviour of MsdfSpriteText.

The tests verify that the drawable follows the expected SpriteText semantics when its text changes, including the interaction between IsPresent, auto-sizing and AlwaysPresent behaviour.

Changes

  • add headless tests for MsdfSpriteText.IsPresent
  • verify that an empty text makes the drawable not present
  • verify that auto-sized containers collapse correctly when the text becomes empty
  • verify that AlwaysPresent subclasses remain present with empty text
  • verify the expected sizing behaviour before and after clearing the text
  • add a flow test to ensure presence state remains stable during layout/update processing

These tests are intended to ensure that MsdfSpriteText behaves consistently with the existing SpriteText lifecycle and container layout semantics.

@isrcalebe isrcalebe self-assigned this Sep 21, 2026
@isrcalebe isrcalebe added the enhancement New feature or request label Sep 21, 2026
@isrcalebe
isrcalebe marked this pull request as ready for review September 21, 2026 17:37
@isrcalebe
isrcalebe merged commit a22c935 into develop Sep 21, 2026
8 checks passed
@isrcalebe
isrcalebe deleted the msdf-tests branch September 21, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant