Yield after control creation to allow it to load the initial page.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -68,6 +68,8 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( WebTestCase, "WebTestCase" );
|
|||||||
void WebTestCase::setUp()
|
void WebTestCase::setUp()
|
||||||
{
|
{
|
||||||
m_browser = wxWebView::New(wxTheApp->GetTopWindow(), wxID_ANY);
|
m_browser = wxWebView::New(wxTheApp->GetTopWindow(), wxID_ANY);
|
||||||
|
//We yield to let the initial page load
|
||||||
|
wxYield();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebTestCase::tearDown()
|
void WebTestCase::tearDown()
|
||||||
@@ -99,7 +101,7 @@ void WebTestCase::Title()
|
|||||||
|
|
||||||
void WebTestCase::Url()
|
void WebTestCase::Url()
|
||||||
{
|
{
|
||||||
CPPUNIT_ASSERT_EQUAL("", m_browser->GetCurrentURL());
|
CPPUNIT_ASSERT_EQUAL("about:blank", m_browser->GetCurrentURL());
|
||||||
|
|
||||||
LoadUrl("about:blank");
|
LoadUrl("about:blank");
|
||||||
CPPUNIT_ASSERT_EQUAL("about:blank", m_browser->GetCurrentURL());
|
CPPUNIT_ASSERT_EQUAL("about:blank", m_browser->GetCurrentURL());
|
||||||
|
Reference in New Issue
Block a user