mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
add test case
This commit is contained in:
parent
1f76b66ff9
commit
68fb71e759
1 changed files with 20 additions and 0 deletions
|
|
@ -945,6 +945,26 @@ TEST("create()", wrap_root(function()
|
|||
CHECK((f2 :: any).a == 2)
|
||||
end
|
||||
|
||||
do CASE "recursive fragment"
|
||||
|
||||
local obj = create "Frame" {
|
||||
|
||||
function()
|
||||
return {
|
||||
{
|
||||
create "Frame" {
|
||||
Name = "A"
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
}
|
||||
|
||||
CHECK(obj:FindFirstChild("A"))
|
||||
|
||||
end
|
||||
|
||||
do CASE "garbage collection test"
|
||||
local wref
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue