add tests

This commit is contained in:
ewd3v 2025-02-05 17:11:07 +01:00
parent c7163eeb5c
commit 1e364f2e93
No known key found for this signature in database
GPG key ID: 18FF74D0F35B288C

View file

@ -759,6 +759,13 @@ TEST("create()", wrap_root(function()
CHECK(text.Text == "test")
end
do CASE "set nested parent"
local frame = create "Frame" {}
local text = create "TextLavel" { { Parent = frame } }
CHECK(frame:GetChildren()[1] == text)
CHECK(text.Parent == frame)
end
do CASE "nested deferred"
local text = create "TextLabel" {
{