mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Update unit test
Regression check for recent `action()` bug fix
This commit is contained in:
parent
374593029a
commit
392c0c1a3c
1 changed files with 4 additions and 1 deletions
|
|
@ -1388,13 +1388,16 @@ TEST("actions", function()
|
||||||
do CASE "run action"
|
do CASE "run action"
|
||||||
local ran = false
|
local ran = false
|
||||||
|
|
||||||
create "Frame" {
|
local frame_ref
|
||||||
|
local frame = create "Frame" {
|
||||||
action(function(self)
|
action(function(self)
|
||||||
|
frame_ref = self
|
||||||
ran = true
|
ran = true
|
||||||
end, 1)
|
end, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
CHECK(ran)
|
CHECK(ran)
|
||||||
|
CHECK(frame_ref == frame)
|
||||||
end
|
end
|
||||||
|
|
||||||
do CASE "priorities"
|
do CASE "priorities"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue