ExpectScreenChange (open)
Expect the screen stack to change
Syntax
LOADLIB "mod::tollium/lib/testframework.whlib";
ASYNC FUNCTION ExpectScreenChange(INTEGER diff, MACRO PTR call, RECORD options)Parameters
INTEGER diffExpected change, eg +1 expects one screen to open, -2 expects two screens to close
MACRO PTR callTrigger call that will cause the screen change to happen
RECORD optionsOptions
allowscreenchangeafterAllow more automatic screen changes after the expected change has been reached. Defaults to FALSE, set to TRUE when you expect the screen to auto-close or another screen to auto-open.
namemaskMask for the expected name of the screen
titlemaskMask for the expected title of the screen
Return value
Extra wait functions
expectcallreturnExpect call that requires the trigger-call to have finished.
expectinitfinishExpect call that requires the Init function of the current topscreen to have finished