wxWidgets/tests/window
Vadim Zeitlin 7d6d514984 Improve WaitForPaint helper used in window unit tests
Unbind the event handler referencing a local variable, as leaving it
bound could result in a crash later if another paint event was generated
for the window for whatever reason.

Doing it like this requires using 2 different objects, but the
complexity can be still hidden inside WaitForPaint class, with the 2nd
object being just a member of it, and, in fact, makes the code using it
simpler as it doesn't need to use a boolean variable with it.
2019-10-17 17:07:00 +02:00
..
clientsize.cpp Rewrite client size unit test without using CppUnit macros 2019-09-22 00:50:23 +02:00
setsize.cpp Improve WaitForPaint helper used in window unit tests 2019-10-17 17:07:00 +02:00