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"
|
||||
local ran = false
|
||||
|
||||
create "Frame" {
|
||||
local frame_ref
|
||||
local frame = create "Frame" {
|
||||
action(function(self)
|
||||
frame_ref = self
|
||||
ran = true
|
||||
end, 1)
|
||||
}
|
||||
|
||||
CHECK(ran)
|
||||
CHECK(frame_ref == frame)
|
||||
end
|
||||
|
||||
do CASE "priorities"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue