From 6cf30c433ca3f407f25eba7bf022b372c70a20e4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 20 Sep 2014 22:07:29 +0000 Subject: [PATCH] Mention the title of the unexpected dialog in wxTestingModalHook. It's not very helpful to just say that an unexpected dialog was shown, using its title provides at least some hint as to what dialog it was. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/testing.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/wx/testing.h b/include/wx/testing.h index 6dd6794fcb..fd72cf7fdc 100644 --- a/include/wx/testing.h +++ b/include/wx/testing.h @@ -261,8 +261,10 @@ protected: ( wxString::Format ( - "A %s dialog was shown unexpectedly, expected %s.", + "A %s dialog with title \"%s\" was shown unexpectedly," + " expected %s.", dlg->GetClassInfo()->GetClassName(), + dlg->GetTitle(), expect->GetDescription() ) ); @@ -275,8 +277,9 @@ protected: ( wxString::Format ( - "A dialog (%s) was shown unexpectedly.", - dlg->GetClassInfo()->GetClassName() + "A dialog (%s with title \"%s\") was shown unexpectedly.", + dlg->GetClassInfo()->GetClassName(), + dlg->GetTitle() ) ); return wxID_NONE;