mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Support nesting Parent (#48)
* allow nesting parent property * update changelog * fix mock instances Parent property not being a proxy * add tests Closes #47
This commit is contained in:
parent
7064489a36
commit
37e8e05206
4 changed files with 39 additions and 21 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