Show the name of the actually tested class in text entry unit tests.

This test is used for several different classes, show the name of the class
being tested when the assert in Editable() test fails.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-05-10 13:22:11 +00:00
parent 37dd9a696c
commit 16ddd52f06

View File

@@ -204,7 +204,11 @@ void TextEntryTestCase::Editable()
!IsAutomaticTest() ) !IsAutomaticTest() )
#endif // __WGTKK__ #endif // __WGTKK__
{ {
CPPUNIT_ASSERT_EQUAL("abcdef", entry->GetValue()); WX_ASSERT_EQUAL_MESSAGE
(
("While testing %s", GetTestWindow()->GetClassInfo()->GetClassName()),
"abcdef", entry->GetValue()
);
CPPUNIT_ASSERT_EQUAL(6, updated.GetCount()); CPPUNIT_ASSERT_EQUAL(6, updated.GetCount());
updated.Clear(); updated.Clear();