I’m trying to create a unit test, and I called a button’s
triggerClick(), and it works as expected if I add
MessageManager::getInstance()->runDispatchLoopUntil (1000); after it.
How can I make the test “click” without running the dispatch loop for a while? Is there a way to call the dispatch loop until all it’s queued messages were dispatched? Or a different better way to do this?