wxWidgets/tests
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
..
any Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
archive Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
arrays Suppress some harmless clang warnings in the test suite 2019-01-04 23:51:31 +01:00
base64
benchmarks Add option to select pen style in graphics benchmarks 2019-10-10 19:45:47 +02:00
cmdline Suppress all -Wmissing-field-initializers in the test suite 2019-02-02 17:25:37 +01:00
config
controls Add a hack to make wxGrid UI unit test pass 2019-10-15 03:18:28 +02:00
datetime Document that wxDateTime::UNow() returns time in local time zone 2019-10-07 12:27:28 +02:00
drawing Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
events Remove CppUnit boilerplate from wxEvent::Clone() test case 2019-07-14 14:12:25 +02:00
exec Restore wxConvAuto in wxTextInputStream used by wxExecute() 2019-04-21 20:10:30 +02:00
file Move URL<->filename conversion functions to wxFileName 2019-08-25 00:48:39 +02:00
filekind Add wxOVERRIDE to test files 2018-07-29 12:08:53 +02:00
filename Fix build without precompiled headers 2018-11-26 23:51:40 +01:00
filesys Move URL<->filename conversion functions to wxFileName 2019-08-25 00:48:39 +02:00
font Various wxFont fixes in wxQt 2019-01-14 23:39:02 +01:00
fontmap
formatconverter
fswatcher Remove macOS workaround unnecessary any longer 2019-04-26 13:36:00 +02:00
fuzz
geometry Move operator<<(std::ostream&, wxRect) overload to a header 2018-11-04 18:28:33 +01:00
graphics Add unit tests for wxDC::Clear() 2019-10-02 02:45:28 +02:00
hashes
html Tweak wxHtmlPrintout::Pagination unit test to pass under Travis 2019-07-19 01:40:44 +02:00
image Fix build with wxUSE_LIBTIFF==0 2019-09-19 00:39:59 +02:00
interactive Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
intl Add wxOVERRIDE to test files 2018-07-29 12:08:53 +02:00
lists Make wxList iterators conform to input iterator requirements 2018-02-23 16:00:06 +01:00
log Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
longlong
mbconv Correct UTF-8 encoding of U+FFFF 2018-01-29 00:48:56 +01:00
menu Fix harmless signed/unsigned comparison warnings in menu test 2019-10-06 17:43:08 +02:00
misc Workaround for a crash with gcc 9.1 from MSYS2 MinGW 32bit 2019-08-03 21:08:10 +02:00
net
persistence Disable tests requiring a WM under Xvfb 2019-07-18 17:45:20 +02:00
regex Add wxRegEx::QuoteMeta() helper 2019-08-25 12:32:51 +02:00
rowheightcache Fix memory leaks in newly added unit test 2018-12-07 04:17:16 +01:00
scopeguard
sizers Allow using alignment with wxEXPAND and wxSHAPED in wxBoxSizer 2019-03-23 17:18:48 +01:00
streams Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
strings Add C++20-style starts_with()/ends_with() functions to wxString 2019-07-31 00:52:29 +02:00
textfile Add wxOVERRIDE to test files 2018-07-29 12:08:53 +02:00
thread Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
toplevel Disable tests requiring a WM under Xvfb 2019-07-18 17:45:20 +02:00
uris Make parsing wxURI paths more conforming to RFC 3986 2019-02-23 14:36:36 +01:00
validators wxTextValidator improvements 2019-01-05 23:33:35 +01:00
vectors Make wxVector::reverse_iterator satisfy RandomAccessIterator 2018-12-07 14:52:51 +01:00
weakref Suppress some harmless clang warnings in the test suite 2019-01-04 23:51:31 +01:00
window Improve WaitForPaint helper used in window unit tests 2019-10-17 17:07:00 +02:00
xlocale
xml Add wxOVERRIDE to test files 2018-07-29 12:08:53 +02:00
asserthelper.cpp Move operator<<(std::ostream&, wxRect) overload to a header 2018-11-04 18:28:33 +01:00
asserthelper.h Move operator<<(std::ostream&, wxRect) overload to a header 2018-11-04 18:28:33 +01:00
descrip.mms Update other test build files by hand for the new STC test 2019-03-20 17:07:56 -05:00
dummy.cpp
horse.ani
horse.bmp
horse.cur
horse.gif
horse.ico
horse.jpg
horse.pcx
horse.png
horse.pnm
horse.tga
horse.tif
horse.xpm
makefile.bcc Regenerate the test make files to include the new STC test 2019-03-20 17:07:47 -05:00
makefile.gcc Regenerate MinGW makefiles using response files 2019-10-06 23:04:21 +02:00
Makefile.in Regenerate the test make files to include the new STC test 2019-03-20 17:07:47 -05:00
makefile.vc Regenerate the test make files to include the new STC test 2019-03-20 17:07:47 -05:00
runtests.bat
test_gui_vc10.sln Implement wxAuiNotebook::GetBestSize() 2018-12-23 17:05:09 +01:00
test_gui_vc11.sln Implement wxAuiNotebook::GetBestSize() 2018-12-23 17:05:09 +01:00
test_gui_vc12.sln Implement wxAuiNotebook::GetBestSize() 2018-12-23 17:05:09 +01:00
test_gui_vc14.sln Implement wxAuiNotebook::GetBestSize() 2018-12-23 17:05:09 +01:00
test_gui_vc15.sln Add "aui" project to MSVS 2017 unit tests solution file too 2018-12-30 16:02:09 +01:00
test_gui.vcxproj Remove explicit "ProgramDataBaseFileName" from test MSVS projects 2019-09-08 22:17:55 +02:00
test_gui.vcxproj.filters Update other test build files by hand for the new STC test 2019-03-20 17:07:56 -05:00
test_vc7_test_drawing.vcproj
test_vc7_test_drawingplugin.vcproj
test_vc7_test_gui.vcproj Regenerate the test make files to include the new STC test 2019-03-20 17:07:47 -05:00
test_vc7_test.vcproj Add unit test for wxLZMA{Input,Output}Stream classes 2018-04-06 15:39:55 +02:00
test_vc8_test_drawing.vcproj
test_vc8_test_drawingplugin.vcproj
test_vc8_test_gui.vcproj Regenerate the test make files to include the new STC test 2019-03-20 17:07:47 -05:00
test_vc8_test.vcproj Add unit test for wxLZMA{Input,Output}Stream classes 2018-04-06 15:39:55 +02:00
test_vc9_test_drawing.vcproj
test_vc9_test_drawingplugin.vcproj
test_vc9_test_gui.vcproj Regenerate the test make files to include the new STC test 2019-03-20 17:07:47 -05:00
test_vc9_test.vcproj Add unit test for wxLZMA{Input,Output}Stream classes 2018-04-06 15:39:55 +02:00
test_vc10.sln
test_vc11.sln
test_vc12.sln
test_vc14.sln
test_vc15.sln
test.bkl Add gui test for STC popup items 2019-03-20 17:07:39 -05:00
test.cpp Don't disable logging in the tests if WXTRACE is set 2019-10-14 23:40:08 +02:00
test.vcxproj Remove explicit "ProgramDataBaseFileName" from test MSVS projects 2019-09-08 22:17:55 +02:00
test.vcxproj.filters Add unit test for wxLZMA{Input,Output}Stream classes 2018-04-06 15:39:55 +02:00
testableframe.cpp Refactor code waiting for events in the test suite 2019-01-24 22:52:46 +01:00
testableframe.h Refactor code waiting for events in the test suite 2019-01-24 22:52:46 +01:00
testdata.fc
testdate.h
testfile.h
testimage.h Give more information in case of wxImage comparison failure 2019-07-18 17:45:20 +02:00
testprec.h Add a helper IsRunningUnderXvfb() function to the test suite 2019-07-18 17:45:20 +02:00
testwindow.h Provide more information for failures involving FindFocus() 2019-07-18 17:45:20 +02:00