From b5edfa2872850e1a3e5f5459013aa046ef2f316e Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Mon, 15 Feb 2021 12:11:51 +0100 Subject: [PATCH] Add minor test for grid attributes Test overwriting a cell's attribute with another attribute. With this addition wxGridCellAttrData::Setattr() is now fully covered by tests. --- tests/controls/gridtest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/controls/gridtest.cpp b/tests/controls/gridtest.cpp index e1c1aa47b6..c3127f9278 100644 --- a/tests/controls/gridtest.cpp +++ b/tests/controls/gridtest.cpp @@ -1691,6 +1691,10 @@ TEST_CASE_METHOD(GridTestCase, "Grid::CellAttribute", "[attr][cell][grid]") SetCellAttr(0, 0); CHECK_ATTR_COUNT( 1 ); + // Overwrite existing attribute with another. + SetCellAttr(0, 0); + CHECK_ATTR_COUNT( 1 ); + m_grid->SetAttr(0, 0, NULL); CHECK_ATTR_COUNT( 0 );