Check if grid is empty when properties are deleted in the reverse order (propgrid sample).

This is to check if all properties are really deleted.
This commit is contained in:
Artur Wieczorek 2015-06-26 18:19:49 +02:00
parent 4228e3210f
commit 03dfb1cd10

View File

@ -477,6 +477,13 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
pgman->DeleteProperty(p);
}
// Check if grid is empty.
it = pgman->GetVIterator(wxPG_ITERATE_ALL&~(wxPG_IT_CHILDREN(wxPG_PROP_AGGREGATE)));
if ( !it.AtEnd() )
{
RT_FAILURE_MSG(wxString(wxS("Not all properties are deleted")));
}
// Recreate grid
CreateGrid( -1, -1 );
pgman = m_pPropGridManager;