]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/test.cpp
Add doc for wxGraphicsContext.Create(), which is a lightweight context with no target...
[wxWidgets.git] / tests / test.cpp
index 6b05835137472d923130d49f7300c513fbed0a0c..9f304346b4a9efb17b0992b7a68befeeafa64994 100644 (file)
@@ -425,7 +425,7 @@ extern bool IsAutomaticTest()
 
         username.MakeLower();
         s_isAutomatic = username.Matches("buildslave*") ||
-                            username.Matches("buildbot*");
+                            username.Matches("sandbox*");
     }
 
     return s_isAutomatic == 1;
@@ -497,6 +497,14 @@ bool TestApp::OnInit()
 
     m_eventloop = new wxEventLoop;
     wxEventLoop::SetActive(m_eventloop);
+
+#ifdef __WXOSX__
+    // we need to wait until the window is activated and fully ready
+    // otherwise no events can be posted
+    m_eventloop->DispatchTimeout(1000);
+    m_eventloop->Yield();
+#endif
+    
 #endif // wxUSE_GUI
 
     return true;