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
This commit is contained in:
Vadim Zeitlin
2014-09-20 22:07:29 +00:00
parent c39f3db6a6
commit 6cf30c433c

View File

@@ -261,8 +261,10 @@ protected:
( (
wxString::Format 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->GetClassInfo()->GetClassName(),
dlg->GetTitle(),
expect->GetDescription() expect->GetDescription()
) )
); );
@@ -275,8 +277,9 @@ protected:
( (
wxString::Format wxString::Format
( (
"A dialog (%s) was shown unexpectedly.", "A dialog (%s with title \"%s\") was shown unexpectedly.",
dlg->GetClassInfo()->GetClassName() dlg->GetClassInfo()->GetClassName(),
dlg->GetTitle()
) )
); );
return wxID_NONE; return wxID_NONE;