Skip to content

InputMethodTest: Only create the windowAddedSpy when actually needed

Arjen Hiemstra requested to merge work/ahiemstra/inputtest into master

We don't really care about the window showing up until we're calling showInputPanel, but since Workspace::windowAdded is triggered for any window that gets added, the test sometimes fails because count() is 2 instead of 1. To avoid that, only create the spy when it's actually relevant instead of all the way at the start before any other setup is done.

Merge request reports