]> git.saurik.com Git - wxWidgets.git/commitdiff
Yield after control creation to allow it to load the initial page.
authorSteve Lamerton <steve.lamerton@gmail.com>
Thu, 14 Jul 2011 13:33:20 +0000 (13:33 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Thu, 14 Jul 2011 13:33:20 +0000 (13:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/controls/webtest.cpp

index e20d0bb857f33ca7eeee3a0c8ae4b20dcf37f443..5e5dfbd5a26112b8972612b3deabb35820d34d3f 100644 (file)
@@ -68,6 +68,8 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( WebTestCase, "WebTestCase" );
 void WebTestCase::setUp()
 {
     m_browser = wxWebView::New(wxTheApp->GetTopWindow(), wxID_ANY);
+    //We yield to let the initial page load
+    wxYield();
 }
 
 void WebTestCase::tearDown()
@@ -99,7 +101,7 @@ void WebTestCase::Title()
 
 void WebTestCase::Url()
 {
-    CPPUNIT_ASSERT_EQUAL("", m_browser->GetCurrentURL());
+    CPPUNIT_ASSERT_EQUAL("about:blank", m_browser->GetCurrentURL());
 
     LoadUrl("about:blank");
     CPPUNIT_ASSERT_EQUAL("about:blank", m_browser->GetCurrentURL());