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:
@@ -477,6 +477,13 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
|||||||
pgman->DeleteProperty(p);
|
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
|
// Recreate grid
|
||||||
CreateGrid( -1, -1 );
|
CreateGrid( -1, -1 );
|
||||||
pgman = m_pPropGridManager;
|
pgman = m_pPropGridManager;
|
||||||
|
Reference in New Issue
Block a user