+
+void HtmlWindowTestCase::Title()
+{
+ m_win->SetPage(TEST_MARKUP);
+
+ CPPUNIT_ASSERT_EQUAL("Page", m_win->GetOpenedPageTitle());
+}
+
+#if wxUSE_UIACTIONSIMULATOR
+void HtmlWindowTestCase::CellClick()
+{
+ EventCounter clicked(m_win, wxEVT_COMMAND_HTML_CELL_CLICKED);
+
+ wxUIActionSimulator sim;
+
+ m_win->SetPage(TEST_MARKUP);
+ m_win->Update();
+ m_win->Refresh();
+
+ sim.MouseMove(m_win->ClientToScreen(wxPoint(15, 15)));
+ wxYield();
+
+ sim.MouseClick();
+ wxYield();
+
+ CPPUNIT_ASSERT_EQUAL(1, clicked.GetCount());
+}
+
+void HtmlWindowTestCase::LinkClick()
+{
+ EventCounter clicked(m_win, wxEVT_COMMAND_HTML_LINK_CLICKED);
+
+ wxUIActionSimulator sim;
+
+ m_win->SetPage(TEST_MARKUP_LINK);
+ m_win->Update();
+ m_win->Refresh();
+
+ sim.MouseMove(m_win->ClientToScreen(wxPoint(15, 15)));
+ wxYield();
+
+ sim.MouseClick();
+ wxYield();
+
+ CPPUNIT_ASSERT_EQUAL(1, clicked.GetCount());
+}
+#endif // wxUSE_UIACTIONSIMULATOR
+
+void HtmlWindowTestCase::AppendToPage()
+{
+ m_win->SetPage(TEST_MARKUP_LINK);
+ m_win->AppendToPage("A new paragraph");
+
+ CPPUNIT_ASSERT_EQUAL("link A new paragraph", m_win->ToText());
+}
+
+#endif //wxUSE_HTML