CPPUNIT_TEST( Editable );
CPPUNIT_TEST( Selection );
CPPUNIT_TEST( Zoom );
+ CPPUNIT_TEST( RunScript );
CPPUNIT_TEST_SUITE_END();
void Title();
void Editable();
void Selection();
void Zoom();
+ void RunScript();
void LoadUrl(int times = 1);
wxWebView* m_browser;
}
}
+void WebTestCase::RunScript()
+{
+ m_browser->RunScript("document.write(\"Hello World!\");");
+ CPPUNIT_ASSERT_EQUAL("Hello World!", m_browser->GetPageText());
+}
+
#endif //wxUSE_WEB