From 97b3e6e50b773cfdbac9afdac22849586d2df3a8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 12 Oct 2019 17:44:53 +0200 Subject: [PATCH] Check that the grid cell has the expected value in the test In addition to checking that we get the expected events, also verify that editing the cell actually worked. --- tests/controls/gridtest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/controls/gridtest.cpp b/tests/controls/gridtest.cpp index 7c82e85b83..6e6a0da108 100644 --- a/tests/controls/gridtest.cpp +++ b/tests/controls/gridtest.cpp @@ -203,6 +203,8 @@ void GridTestCase::CellEdit() } #endif // __WXGTK__ + CHECK(m_grid->GetCellValue(1, 1) == "abab"); + CPPUNIT_ASSERT_EQUAL(1, created.GetCount()); CPPUNIT_ASSERT_EQUAL(1, changing.GetCount()); CPPUNIT_ASSERT_EQUAL(1, changed.GetCount());