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 diff

Expected change, eg +1 expects one screen to open, -2 expects two screens to close

MACRO PTR call

Trigger call that will cause the screen change to happen

RECORD options

Options

allowscreenchangeafter

Allow 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.

namemask

Mask for the expected name of the screen

titlemask

Mask for the expected title of the screen

Return value

Extra wait functions

expectcallreturn

Expect call that requires the trigger-call to have finished.

expectinitfinish

Expect call that requires the Init function of the current topscreen to have finished