]>
git.saurik.com Git - wxWidgets.git/blob - tests/controls/htmllboxtest.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: tests/controls/htmllboxtest.cpp
3 // Purpose: wxSimpleHtmlListBoxNameStr unit test
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2010 Vadim Zeitlin <vadim@wxwidgets.org>
8 ///////////////////////////////////////////////////////////////////////////////
20 #include "wx/htmllbox.h"
21 #include "itemcontainertest.h"
23 class HtmlListBoxTestCase
: public ItemContainerTestCase
,
24 public CppUnit::TestCase
27 HtmlListBoxTestCase() { }
30 virtual void tearDown();
33 virtual wxItemContainer
*GetContainer() const { return m_htmllbox
; }
34 virtual wxWindow
*GetContainerWindow() const { return m_htmllbox
; }
36 CPPUNIT_TEST_SUITE( HtmlListBoxTestCase
);
37 wxITEM_CONTAINER_TESTS();
38 CPPUNIT_TEST_SUITE_END();
40 wxSimpleHtmlListBox
* m_htmllbox
;
42 DECLARE_NO_COPY_CLASS(HtmlListBoxTestCase
)
45 // register in the unnamed registry so that these tests are run by default
46 CPPUNIT_TEST_SUITE_REGISTRATION( HtmlListBoxTestCase
);
48 // also include in it's own registry so that these tests can be run alone
49 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( HtmlListBoxTestCase
, "HtmlListBoxTestCase" );
51 void HtmlListBoxTestCase::setUp()
53 m_htmllbox
= new wxSimpleHtmlListBox(wxTheApp
->GetTopWindow(), wxID_ANY
);
56 void HtmlListBoxTestCase::tearDown()