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 Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
bitmaptogglebuttontest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
bookctrlbasetest.cpp Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
bookctrlbasetest.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
buttontest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
checkboxtest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
checklistboxtest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
choicebooktest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
choicetest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
comboboxtest.cpp Fix wxComboBox unit test under wxGTK after recent changes 2016-02-27 02:41:11 +01:00
dataviewctrltest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
datepickerctrltest.cpp Document and test wxDatePickerCtrl::SetRange() date-clamping behaviour. 2015-07-17 17:59:40 +02:00
dialogtest.cpp Work around a crash in wxGTK3 GUI test suite 2016-02-27 02:41:18 +01:00
frametest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
gaugetest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
gridtest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
headerctrltest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
htmllboxtest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
hyperlinkctrltest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
itemcontainertest.cpp Add wxUIActionSimulator::Select(). 2014-09-10 16:52:01 +00:00
itemcontainertest.h Disable ItemContainerTestCase::SimSelect() for wxBitmapComboBox on buildbot. 2015-04-12 23:18:59 +02:00
label.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
listbasetest.cpp make wxKeyEvent could get unicode key under x11, add a x11 keysym--unicode char map tab 2014-09-23 17:43:37 +00:00
listbasetest.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
listbooktest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
listboxtest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
listctrltest.cpp Avoid asserts when destroying windows with mouse capture in tests 2016-06-29 18:26:11 +02:00
listviewtest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
markuptest.cpp Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
notebooktest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
ownerdrawncomboboxtest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
pickerbasetest.cpp Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
pickerbasetest.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
pickertest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
radioboxtest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
radiobuttontest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
rearrangelisttest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
richtextctrltest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
searchctrltest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
simplebooktest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
slidertest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
spinctrldbltest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
spinctrltest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
textctrltest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
textentrytest.cpp dd a hack to make wxBitmapComboBox Editable() unit test pass 2016-02-27 01:14:24 +01:00
textentrytest.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
togglebuttontest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
toolbooktest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
treebooktest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
treectrltest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
treelistctrltest.cpp Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
virtlistctrltest.cpp Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
webtest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
windowtest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00