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
This commit is contained in:
parent
620e83e412
commit
ed1c9160bf
1 changed files with 5 additions and 0 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue