Update unit test

Regression check for recent `action()` bug fix
This commit is contained in:
aaron 2023-08-28 12:19:52 +01:00
parent 374593029a
commit 392c0c1a3c

View file

@ -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"