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:
@@ -1691,6 +1691,10 @@ TEST_CASE_METHOD(GridTestCase, "Grid::CellAttribute", "[attr][cell][grid]")
|
|||||||
SetCellAttr(0, 0);
|
SetCellAttr(0, 0);
|
||||||
CHECK_ATTR_COUNT( 1 );
|
CHECK_ATTR_COUNT( 1 );
|
||||||
|
|
||||||
|
// Overwrite existing attribute with another.
|
||||||
|
SetCellAttr(0, 0);
|
||||||
|
CHECK_ATTR_COUNT( 1 );
|
||||||
|
|
||||||
m_grid->SetAttr(0, 0, NULL);
|
m_grid->SetAttr(0, 0, NULL);
|
||||||
CHECK_ATTR_COUNT( 0 );
|
CHECK_ATTR_COUNT( 0 );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user