X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e0b0d7c553d86998a251dcf0f5a5e22b5868403..a9fd42ccebb2534cfd3910bc7108171f4ee6d54b:/tests/controls/webtest.cpp diff --git a/tests/controls/webtest.cpp b/tests/controls/webtest.cpp index fab56fab35..533f1da461 100644 --- a/tests/controls/webtest.cpp +++ b/tests/controls/webtest.cpp @@ -79,7 +79,8 @@ void WebTestCase::setUp() { m_browser = wxWebView::New(wxTheApp->GetTopWindow(), wxID_ANY); - m_loaded = new EventCounter(m_browser, wxEVT_COMMAND_WEB_VIEW_LOADED); + m_loaded = new EventCounter(m_browser, wxEVT_WEBVIEW_LOADED); + m_browser->LoadURL("about:"); ENSURE_LOADED; } @@ -229,25 +230,25 @@ void WebTestCase::Selection() void WebTestCase::Zoom() { - if(m_browser->CanSetZoomType(wxWEB_VIEW_ZOOM_TYPE_LAYOUT)) + if(m_browser->CanSetZoomType(wxWEBVIEW_ZOOM_TYPE_LAYOUT)) { - m_browser->SetZoomType(wxWEB_VIEW_ZOOM_TYPE_LAYOUT); - CPPUNIT_ASSERT_EQUAL(wxWEB_VIEW_ZOOM_TYPE_LAYOUT, m_browser->GetZoomType()); + m_browser->SetZoomType(wxWEBVIEW_ZOOM_TYPE_LAYOUT); + CPPUNIT_ASSERT_EQUAL(wxWEBVIEW_ZOOM_TYPE_LAYOUT, m_browser->GetZoomType()); - m_browser->SetZoom(wxWEB_VIEW_ZOOM_TINY); - CPPUNIT_ASSERT_EQUAL(wxWEB_VIEW_ZOOM_TINY, m_browser->GetZoom()); + m_browser->SetZoom(wxWEBVIEW_ZOOM_TINY); + CPPUNIT_ASSERT_EQUAL(wxWEBVIEW_ZOOM_TINY, m_browser->GetZoom()); } //Reset the zoom level - m_browser->SetZoom(wxWEB_VIEW_ZOOM_MEDIUM); + m_browser->SetZoom(wxWEBVIEW_ZOOM_MEDIUM); - if(m_browser->CanSetZoomType(wxWEB_VIEW_ZOOM_TYPE_TEXT)) + if(m_browser->CanSetZoomType(wxWEBVIEW_ZOOM_TYPE_TEXT)) { - m_browser->SetZoomType(wxWEB_VIEW_ZOOM_TYPE_TEXT); - CPPUNIT_ASSERT_EQUAL(wxWEB_VIEW_ZOOM_TYPE_TEXT, m_browser->GetZoomType()); + m_browser->SetZoomType(wxWEBVIEW_ZOOM_TYPE_TEXT); + CPPUNIT_ASSERT_EQUAL(wxWEBVIEW_ZOOM_TYPE_TEXT, m_browser->GetZoomType()); - m_browser->SetZoom(wxWEB_VIEW_ZOOM_TINY); - CPPUNIT_ASSERT_EQUAL(wxWEB_VIEW_ZOOM_TINY, m_browser->GetZoom()); + m_browser->SetZoom(wxWEBVIEW_ZOOM_TINY); + CPPUNIT_ASSERT_EQUAL(wxWEBVIEW_ZOOM_TINY, m_browser->GetZoom()); } }