Skip to content
Snippets Groups Projects
Commit 2db23a9a authored by buczekp's avatar buczekp
Browse files

[LMS-1625] partly fixed experiment viewer tests - execute deferred actions...

[LMS-1625] partly fixed experiment viewer tests - execute deferred actions immediately in testing mode

SVN: 16928
parent a4cb1f75
No related branches found
No related tags found
No related merge requests found
......@@ -118,11 +118,19 @@ public final class GWTUtils
}
/**
* Deferrs a task allowing browser to handle events.
* Defers a task allowing browser to handle events.
*/
public static void executeDelayed(final IDelegatedAction delegatedAction)
{
DeferredCommand.addCommand(delegatedAction);
// In testing mode the action has to be performed without delay - otherwise system tests
// will perform new commands before the deferred action starts.
if (isTesting() == false)
{
DeferredCommand.addCommand(delegatedAction);
} else
{
delegatedAction.execute();
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment