Add the ability to enable / disable and check for the editable property of a rendering engine. Implement for all three backends and extend the sample, document and unit test.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,6 +40,7 @@ private:
|
||||
CPPUNIT_TEST( HistoryEnable );
|
||||
CPPUNIT_TEST( HistoryClear );
|
||||
CPPUNIT_TEST( HistoryList );
|
||||
CPPUNIT_TEST( Editable );
|
||||
CPPUNIT_TEST_SUITE_END();
|
||||
|
||||
void Title();
|
||||
@@ -48,6 +49,7 @@ private:
|
||||
void HistoryEnable();
|
||||
void HistoryClear();
|
||||
void HistoryList();
|
||||
void Editable();
|
||||
void LoadUrl(const wxString& url, int times = 1);
|
||||
|
||||
wxWebView* m_browser;
|
||||
@@ -166,4 +168,17 @@ void WebTestCase::HistoryList()
|
||||
CPPUNIT_ASSERT_EQUAL(2, m_browser->GetBackwardHistory().size());
|
||||
}
|
||||
|
||||
void WebTestCase::Editable()
|
||||
{
|
||||
CPPUNIT_ASSERT(!m_browser->IsEditable());
|
||||
|
||||
m_browser->SetEditable(true);
|
||||
|
||||
CPPUNIT_ASSERT(m_browser->IsEditable());
|
||||
|
||||
m_browser->SetEditable(false);
|
||||
|
||||
CPPUNIT_ASSERT(!m_browser->IsEditable());
|
||||
}
|
||||
|
||||
#endif //wxUSE_WEB
|
||||
|
Reference in New Issue
Block a user