From: Steve Lamerton Date: Fri, 23 Dec 2011 19:16:47 +0000 (+0000) Subject: Add some extra yields to wxWebView unit tests to hopefully fix some of the failing... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ed1c9160bfca91f5c465b2091cf228aeceaaefda Add some extra yields to wxWebView unit tests to hopefully fix some of the failing buildbot runs. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/controls/webtest.cpp b/tests/controls/webtest.cpp index 41e7adfdfe..e223ba7a5b 100644 --- a/tests/controls/webtest.cpp +++ b/tests/controls/webtest.cpp @@ -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());