]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/webtest.cpp
Add CombineURIs implementation for wxWebFileProtocolHandler. Update the IE backend...
[wxWidgets.git] / tests / controls / webtest.cpp
index 8154a9032b9a48f2fe28e83a909b4ac2700ee343..ae4cfe224571521ce30e2b13da621dea3e1ff154 100644 (file)
@@ -43,6 +43,7 @@ private:
         CPPUNIT_TEST( Editable );
         CPPUNIT_TEST( Selection );
         CPPUNIT_TEST( Zoom );
+        CPPUNIT_TEST( RunScript );
     CPPUNIT_TEST_SUITE_END();
 
     void Title();
@@ -54,6 +55,7 @@ private:
     void Editable();
     void Selection();
     void Zoom();
+    void RunScript();
     void LoadUrl(int times = 1);
 
     wxWebView* m_browser;
@@ -236,4 +238,10 @@ void WebTestCase::Zoom()
     }
 }
 
+void WebTestCase::RunScript()
+{
+    m_browser->RunScript("document.write(\"Hello World!\");");
+    CPPUNIT_ASSERT_EQUAL("Hello World!", m_browser->GetPageText());
+}
+
 #endif //wxUSE_WEB