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.
This commit is contained in:
Dimitri Schoolwerth
2021-02-15 12:11:51 +01:00
parent 62a760c225
commit b5edfa2872

View File

@@ -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 );