Add wait in testOnWindowFocusChanged.

This test case sometimes fails when isOnWindowFocusChangedCalled is done before asynchronous callback of onWindowFocusChanged is done, which is called by showDialog().

To avoid this, I added wait so that asynchronous process of onWindowFocusChanged is finished completely.
1 file changed