wxWidgets/tests/controls
Vadim Zeitlin 1dd102d741 Fix crash when deleting all wxTreeListCtrl items with wxGTK3
GTK+ 3 (but not the generic version nor even GTK+ 2, apparently) sends
"selection changed" event from gtk_tree_model_row_deleted() when
deleting the currently selected row, which resulted in sending of
wxEVT_TREELIST_SELECTION_CHANGED events with invalid wxTreeListItem,
containing a dangling pointer, and a crash in the treelist sample when
trying to dump it.

Avoid this by clearing the model (and hence generating these events)
first and deleting the items only afterwards.

Also add a trivial unit test for wxTreeListCtrl::DeleteAllItems(), which
doesn't even allow to reproduce this bug, but is still probably better
to have than not to.

Closes #18045.
2018-01-17 10:44:28 +01:00
..
bitmapcomboboxtest.cpp Fix building tests with wxUSE_UIACTIONSIMULATOR==0 2017-10-01 09:44:53 -07:00
bitmaptogglebuttontest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
bookctrlbasetest.cpp
bookctrlbasetest.h
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 Return true from wxDialog::IsModal() in wxEVT_INIT_DIALOG handler 2017-05-22 01:21:43 +02: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
itemcontainertest.h Fix building tests with wxUSE_UIACTIONSIMULATOR==0 2017-10-01 09:44:53 -07:00
label.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
listbasetest.cpp Do not explicitly tidy up when ending a test case 2017-05-14 22:32:59 +02:00
listbasetest.h Added a unit test for wxListCtrl::HitTest() 2017-05-14 22:32:08 +02: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 Replace CppUnit with Catch for unit tests 2017-11-02 01:53:16 +01: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
pickerbasetest.h
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 Disable test for clicking URLs under AppVeyor 2017-11-25 11:13:02 +01:00
textentrytest.cpp Send event when clearing wxTextCtrl in wxGTK again 2017-11-07 03:12:10 +01:00
textentrytest.h
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 Fix crash when deleting all wxTreeListCtrl items with wxGTK3 2018-01-17 10:44:28 +01:00
virtlistctrltest.cpp
webtest.cpp Merge branch 'webview-js-retval' 2017-11-04 16:07:51 +01:00
windowtest.cpp Skip focus event test when running under buildbot 2017-11-14 02:41:58 +01:00