test_gui_gaugetest.o \
test_gui_gridtest.o \
test_gui_headerctrltest.o \
+ test_gui_htmllboxtest.o \
test_gui_hyperlinkctrltest.o \
test_gui_itemcontainertest.o \
test_gui_label.o \
test_gui_headerctrltest.o: $(srcdir)/controls/headerctrltest.cpp $(TEST_GUI_ODEP)
$(CXXC) -c -o $@ $(TEST_GUI_CXXFLAGS) $(srcdir)/controls/headerctrltest.cpp
+test_gui_htmllboxtest.o: $(srcdir)/controls/htmllboxtest.cpp $(TEST_GUI_ODEP)
+ $(CXXC) -c -o $@ $(TEST_GUI_CXXFLAGS) $(srcdir)/controls/htmllboxtest.cpp
+
test_gui_hyperlinkctrltest.o: $(srcdir)/controls/hyperlinkctrltest.cpp $(TEST_GUI_ODEP)
$(CXXC) -c -o $@ $(TEST_GUI_CXXFLAGS) $(srcdir)/controls/hyperlinkctrltest.cpp
--- /dev/null
+///////////////////////////////////////////////////////////////////////////////
+// Name: tests/controls/htmllboxtest.cpp
+// Purpose: wxSimpleHtmlListBoxNameStr unit test
+// Author: Vadim Zeitlin
+// Created: 2010-11-27
+// RCS-ID: $Id$
+// Copyright: (c) 2010 Vadim Zeitlin <vadim@wxwidgets.org>
+///////////////////////////////////////////////////////////////////////////////
+
+#include "testprec.h"
+
+#ifdef __BORLANDC__
+ #pragma hdrstop
+#endif
+
+#ifndef WX_PRECOMP
+ #include "wx/app.h"
+#endif // WX_PRECOMP
+
+#include "wx/htmllbox.h"
+#include "itemcontainertest.h"
+
+class HtmlListBoxTestCase : public ItemContainerTestCase,
+ public CppUnit::TestCase
+{
+public:
+ HtmlListBoxTestCase() { }
+
+ virtual void setUp();
+ virtual void tearDown();
+
+private:
+ virtual wxItemContainer *GetContainer() const { return m_htmllbox; }
+ virtual wxWindow *GetContainerWindow() const { return m_htmllbox; }
+
+ CPPUNIT_TEST_SUITE( HtmlListBoxTestCase );
+ wxITEM_CONTAINER_TESTS();
+ CPPUNIT_TEST_SUITE_END();
+
+ wxSimpleHtmlListBox* m_htmllbox;
+
+ DECLARE_NO_COPY_CLASS(HtmlListBoxTestCase)
+};
+
+// register in the unnamed registry so that these tests are run by default
+CPPUNIT_TEST_SUITE_REGISTRATION( HtmlListBoxTestCase );
+
+// also include in it's own registry so that these tests can be run alone
+CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( HtmlListBoxTestCase, "HtmlListBoxTestCase" );
+
+void HtmlListBoxTestCase::setUp()
+{
+ m_htmllbox = new wxSimpleHtmlListBox(wxTheApp->GetTopWindow(), wxID_ANY);
+}
+
+void HtmlListBoxTestCase::tearDown()
+{
+ wxDELETE(m_htmllbox);
+}
$(OBJS)\test_gui_gaugetest.obj \\r
$(OBJS)\test_gui_gridtest.obj \\r
$(OBJS)\test_gui_headerctrltest.obj \\r
+ $(OBJS)\test_gui_htmllboxtest.obj \
$(OBJS)\test_gui_hyperlinkctrltest.obj \\r
$(OBJS)\test_gui_itemcontainertest.obj \\r
$(OBJS)\test_gui_label.obj \\r
$(OBJS)\test_gui_headerctrltest.obj: .\controls\headerctrltest.cpp\r
$(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) .\controls\headerctrltest.cpp\r
\r
+$(OBJS)\test_gui_htmllboxtest.obj: .\controls\htmllboxtest.cpp
+ $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) .\controls\htmllboxtest.cpp
+
$(OBJS)\test_gui_hyperlinkctrltest.obj: .\controls\hyperlinkctrltest.cpp\r
$(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) .\controls\hyperlinkctrltest.cpp\r
\r
$(OBJS)\test_gui_gaugetest.o \\r
$(OBJS)\test_gui_gridtest.o \\r
$(OBJS)\test_gui_headerctrltest.o \\r
+ $(OBJS)\test_gui_htmllboxtest.o \
$(OBJS)\test_gui_hyperlinkctrltest.o \\r
$(OBJS)\test_gui_itemcontainertest.o \\r
$(OBJS)\test_gui_label.o \\r
$(OBJS)\test_gui_headerctrltest.o: ./controls/headerctrltest.cpp\r
$(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<\r
\r
+$(OBJS)\test_gui_htmllboxtest.o: ./controls/htmllboxtest.cpp
+ $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<
+
$(OBJS)\test_gui_hyperlinkctrltest.o: ./controls/hyperlinkctrltest.cpp\r
$(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $(CPPDEPS) $<\r
\r
$(OBJS)\test_gui_gaugetest.obj \\r
$(OBJS)\test_gui_gridtest.obj \\r
$(OBJS)\test_gui_headerctrltest.obj \\r
+ $(OBJS)\test_gui_htmllboxtest.obj \
$(OBJS)\test_gui_hyperlinkctrltest.obj \\r
$(OBJS)\test_gui_itemcontainertest.obj \\r
$(OBJS)\test_gui_label.obj \\r
$(OBJS)\test_gui_headerctrltest.obj: .\controls\headerctrltest.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) .\controls\headerctrltest.cpp\r
\r
+$(OBJS)\test_gui_htmllboxtest.obj: .\controls\htmllboxtest.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) .\controls\htmllboxtest.cpp
+
$(OBJS)\test_gui_hyperlinkctrltest.obj: .\controls\hyperlinkctrltest.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) .\controls\hyperlinkctrltest.cpp\r
\r
$(OBJS)\test_gui_gaugetest.obj &\r
$(OBJS)\test_gui_gridtest.obj &\r
$(OBJS)\test_gui_headerctrltest.obj &\r
+ $(OBJS)\test_gui_htmllboxtest.obj &
$(OBJS)\test_gui_hyperlinkctrltest.obj &\r
$(OBJS)\test_gui_itemcontainertest.obj &\r
$(OBJS)\test_gui_label.obj &\r
$(OBJS)\test_gui_headerctrltest.obj : .AUTODEPEND .\controls\headerctrltest.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<\r
\r
+$(OBJS)\test_gui_htmllboxtest.obj : .AUTODEPEND .\controls\htmllboxtest.cpp
+ $(CXX) -bt=nt -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
+
$(OBJS)\test_gui_hyperlinkctrltest.obj : .AUTODEPEND .\controls\hyperlinkctrltest.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<\r
\r
controls/gaugetest.cpp
controls/gridtest.cpp
controls/headerctrltest.cpp
+ controls/htmllboxtest.cpp
controls/hyperlinkctrltest.cpp
controls/itemcontainertest.cpp
controls/label.cpp
# End Source File\r
# Begin Source File\r
\r
+SOURCE=.\controls\htmllboxtest.cpp
+# End Source File
+# Begin Source File
+
SOURCE=.\html\htmlwindow.cpp\r
# End Source File\r
# Begin Source File\r
RelativePath=".\controls\headerctrltest.cpp">\r
</File>\r
<File\r
+ RelativePath=".\controls\htmllboxtest.cpp">
+ </File>
+ <File
RelativePath=".\html\htmlwindow.cpp">\r
</File>\r
<File\r
>\r
</File>\r
<File\r
+ RelativePath=".\controls\htmllboxtest.cpp"
+ >
+ </File>
+ <File
RelativePath=".\html\htmlwindow.cpp"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath=".\controls\htmllboxtest.cpp"
+ >
+ </File>
+ <File
RelativePath=".\html\htmlwindow.cpp"\r
>\r
</File>\r