]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/webtest.cpp
reusing existing API
[wxWidgets.git] / tests / controls / webtest.cpp
index 6b9e093e00e54f0c55ab703685dd8f099eff7a70..6e7bd6da4cfddb00e02298dc7ffc4b3b8797405e 100644 (file)
@@ -79,7 +79,8 @@ void WebTestCase::setUp()
 {
     m_browser = wxWebView::New(wxTheApp->GetTopWindow(), wxID_ANY);
 
 {
     m_browser = wxWebView::New(wxTheApp->GetTopWindow(), wxID_ANY);
 
-    m_loaded = new EventCounter(m_browser, wxEVT_COMMAND_WEBVIEW_LOADED);
+    m_loaded = new EventCounter(m_browser, wxEVT_WEBVIEW_LOADED);
+    m_browser->LoadURL("about:blank");
     ENSURE_LOADED;
 }
 
     ENSURE_LOADED;
 }