mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Ignore false passed as a child
This commit is contained in:
parent
c796e48173
commit
46a2043356
3 changed files with 16 additions and 1 deletions
|
|
@ -819,6 +819,20 @@ TEST("create()", wrap_root(function()
|
|||
CHECK(frame:FindFirstChild "G")
|
||||
end
|
||||
|
||||
do CASE "set false as child"
|
||||
create "Frame" {
|
||||
false
|
||||
}
|
||||
|
||||
create "Frame" {
|
||||
function() return false end
|
||||
}
|
||||
|
||||
create "Frame" {
|
||||
function() return { false } end
|
||||
}
|
||||
end
|
||||
|
||||
do CASE "binding properties to source"
|
||||
local name = source("Hi")
|
||||
local text = source("Bye")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue