From: Vadim Zeitlin Date: Fri, 10 May 2013 13:22:11 +0000 (+0000) Subject: Show the name of the actually tested class in text entry unit tests. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/16ddd52f06d59098925363265e18299da55ed63f?ds=inline 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 --- diff --git a/tests/controls/textentrytest.cpp b/tests/controls/textentrytest.cpp index b4a9092db7..1843a4e21d 100644 --- a/tests/controls/textentrytest.cpp +++ b/tests/controls/textentrytest.cpp @@ -204,7 +204,11 @@ void TextEntryTestCase::Editable() !IsAutomaticTest() ) #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()); updated.Clear();