]> git.saurik.com Git - wxWidgets.git/commitdiff
Add some extra yields to wxWebView unit tests to hopefully fix some of the failing...
authorSteve Lamerton <steve.lamerton@gmail.com>
Fri, 23 Dec 2011 19:16:47 +0000 (19:16 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Fri, 23 Dec 2011 19:16:47 +0000 (19:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/controls/webtest.cpp

index 41e7adfdfe711ec72c079100ef1e363a3fafad6b..e223ba7a5bfc4e5b3515f27ab03bbb34dc0f8867 100644 (file)
@@ -128,12 +128,15 @@ void WebTestCase::History()
     CPPUNIT_ASSERT(!m_browser->CanGoForward());
 
     m_browser->GoBack();
+    wxYield();
 
     CPPUNIT_ASSERT(m_browser->CanGoBack());
     CPPUNIT_ASSERT(m_browser->CanGoForward());
 
     m_browser->GoBack();
+    wxYield();
     m_browser->GoBack();
+    wxYield();
 
     //We should now be at the start of the history
     CPPUNIT_ASSERT(!m_browser->CanGoBack());
@@ -175,11 +178,13 @@ void WebTestCase::HistoryList()
 {
     LoadUrl(2);
     m_browser->GoBack();
+    wxYield();
 
     CPPUNIT_ASSERT_EQUAL(1, m_browser->GetBackwardHistory().size());
     CPPUNIT_ASSERT_EQUAL(1, m_browser->GetForwardHistory().size());
 
     m_browser->LoadHistoryItem(m_browser->GetForwardHistory()[0]);
+    wxYield();
 
     CPPUNIT_ASSERT(!m_browser->CanGoForward());
     CPPUNIT_ASSERT_EQUAL(2, m_browser->GetBackwardHistory().size());