Extend 'SetSplitterPosition' unit test in propgrid sample.

Added check if splitter position is retained when property grid is resized.
This commit is contained in:
Artur Wieczorek
2015-06-14 17:13:21 +02:00
parent a1c888437d
commit 147ae70623

View File

@@ -1209,9 +1209,11 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
m_topSizer->Add( m_pPropGridManager, wxSizerFlags(1).Expand());
FinalizePanel();
wxSize sz = GetSize();
wxSize origSz = sz;
wxSize origSz = GetSize();
wxSize sz = origSz;
sz.IncBy(5, 5);
SetSize(sz);
if ( pgman->GetGrid()->GetSplitterPosition() != trySplitterPos )
RT_FAILURE_MSG(wxString::Format(wxT("Splitter position was %i (should have been %i)"),(int)pgman->GetGrid()->GetSplitterPosition(),trySplitterPos).c_str());