Add wxTEST_DIALOG for testing of modal dialogs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2012-11-01 16:45:11 +00:00
parent a4d982a7cf
commit 643e9cf9f6
58 changed files with 632 additions and 48 deletions

View File

@@ -29,6 +29,7 @@
#endif
#include "wx/evtloop.h"
#include "wx/testing.h"
//-----------------------------------------------------------------------------
// wxDialog
@@ -165,6 +166,8 @@ bool wxDialog::IsModal() const
int wxDialog::ShowModal()
{
WX_TESTING_SHOW_MODAL_HOOK();
if ( IsModal() )
{
wxFAIL_MSG( wxT("wxDialog:ShowModal called twice") );