Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Prev Previous commit
[[ Bug 22843 ]] Add test for subwindow without waiting
This patch adds  test for the subwindow without waiting clause.
  • Loading branch information
montegoulding committed Sep 16, 2020
commit b7d2d6db53345ea434911cf8a87a968de9daa78f
10 changes: 10 additions & 0 deletions tests/lcs/core/interface/subwindow.livecodescript
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,13 @@ on TestSubwindowPropagatesErrors
end try
TestAssert "Error during subwindow propagates to caller", tError is "red"
end TestSubwindowPropagatesErrors

on TestSubwindowWithoutWaiting
local tName
put "Test" && uuid() into tName
create stack tName
set the script of stack tName to format("on openStack; send \"close this stack\" to me in 0;end openStack")
modal tName without waiting
TestAssert "Subwindow without waiting does not wait for close", tName is among the lines of the openStacks
delete stack tName
end TestSubwindowWithoutWaiting