Don't use deprecated methods in wxGrid test.
Don't use the methods defined only when building 2.8-compatible mode to let the tests compile even with WXWIN_COMPATIBILITY_2_8 off. This only worked before because of the wrong tests in grid.h but broke after the fixes of r70098. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -644,7 +644,7 @@ void GridTestCase::CellFormatting()
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(back, m_grid->GetCellTextColour(0, 0));
|
||||
|
||||
m_grid->SetCellAlignment(wxALIGN_CENTRE, 0, 0);
|
||||
m_grid->SetCellAlignment(0, 0, wxALIGN_CENTRE);
|
||||
m_grid->GetCellAlignment(0, 0, &cellhoriz, &cellvert);
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(static_cast<int>(wxALIGN_CENTRE), cellhoriz);
|
||||
@@ -656,7 +656,7 @@ void GridTestCase::CellFormatting()
|
||||
CPPUNIT_ASSERT_EQUAL(static_cast<int>(wxALIGN_LEFT), cellhoriz);
|
||||
CPPUNIT_ASSERT_EQUAL(static_cast<int>(wxALIGN_BOTTOM), cellvert);
|
||||
|
||||
m_grid->SetCellTextColour(*wxRED, 0, 0);
|
||||
m_grid->SetCellTextColour(0, 0, *wxRED);
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(*wxRED, m_grid->GetCellTextColour(0, 0));
|
||||
|
||||
|
Reference in New Issue
Block a user