wxWidgets/tests/controls
Vadim Zeitlin 8686ca62e7 Avoid asserts when destroying windows with mouse capture in tests
Destroying a window with mouse capture results in an assert, which is
translated into an exception when running the test suite. As this exception is
thrown from wxWindowBase dtor, it results in an immediate program termination
when using C++11 and can also have the same effect even when using C++98 if
this exception is thrown while already handling another exception due to a
test failure.

Try to avoid this by using a "safe" DeleteTestWindow() function instead of
deleting the window directly. Currently this function ensures that the window
doesn't have mouse capture before deleting it, but it could also be used to
check for other things later. Also, this commit only uses this function for
the two controls which do happen to be destroyed with mouse capture currently
(at least when using wxGTK), but it should probably be generalized to all
controls in the future.
2016-06-29 18:26:11 +02:00
..
bitmapcomboboxtest.cpp
bitmaptogglebuttontest.cpp
bookctrlbasetest.cpp
bookctrlbasetest.h
buttontest.cpp
checkboxtest.cpp
checklistboxtest.cpp
choicebooktest.cpp
choicetest.cpp
comboboxtest.cpp
dataviewctrltest.cpp
datepickerctrltest.cpp
dialogtest.cpp
frametest.cpp
gaugetest.cpp
gridtest.cpp
headerctrltest.cpp
htmllboxtest.cpp
hyperlinkctrltest.cpp
itemcontainertest.cpp
itemcontainertest.h
label.cpp
listbasetest.cpp
listbasetest.h
listbooktest.cpp
listboxtest.cpp
listctrltest.cpp
listviewtest.cpp
markuptest.cpp
notebooktest.cpp
ownerdrawncomboboxtest.cpp
pickerbasetest.cpp
pickerbasetest.h
pickertest.cpp
radioboxtest.cpp
radiobuttontest.cpp
rearrangelisttest.cpp
richtextctrltest.cpp
searchctrltest.cpp
simplebooktest.cpp
slidertest.cpp
spinctrldbltest.cpp
spinctrltest.cpp
textctrltest.cpp
textentrytest.cpp
textentrytest.h
togglebuttontest.cpp
toolbooktest.cpp
treebooktest.cpp
treectrltest.cpp
treelistctrltest.cpp
virtlistctrltest.cpp
webtest.cpp
windowtest.cpp