mirror of
https://github.com/centau/vide.git
synced 2026-08-20 23:01:37 +00:00
add tests
This commit is contained in:
parent
c7163eeb5c
commit
1e364f2e93
1 changed files with 7 additions and 0 deletions
|
|
@ -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" {
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue