Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for control to test anchoring and minimum size #98757

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

girdenis-p
Copy link
Contributor

This contributes to issue #43440.

I have added unit tests to check anchoring using the set_anchor and set_offset methods for the Control node. I have also added unit tests for set_custom_minimum_size and methods that set grow direction.

For organisation purposes, I have also renamed a previously existing unnamed test case to help distinguish its purpose from the other test cases.

tests/scene/test_control.h Outdated Show resolved Hide resolved
tests/scene/test_control.h Outdated Show resolved Hide resolved
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Code looks good to me.

Please rebase to fix merge conflicts. See PR workflow for instructions 🙂

@Repiteo Repiteo modified the milestones: 4.x, 4.4 Feb 14, 2025
@Repiteo Repiteo merged commit 19d7d9f into godotengine:master Feb 14, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Feb 14, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants