]>
git.saurik.com Git - wxWidgets.git/blob - tests/controls/htmllboxtest.cpp
ce0003736e5614fdb984df9f59893e29b57cf227
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: tests/controls/htmllboxtest.cpp
3 // Purpose: wxSimpleHtmlListBoxNameStr unit test
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 2010 Vadim Zeitlin <vadim@wxwidgets.org>
7 ///////////////////////////////////////////////////////////////////////////////
19 #include "wx/htmllbox.h"
20 #include "itemcontainertest.h"
22 class HtmlListBoxTestCase
: public ItemContainerTestCase
,
23 public CppUnit::TestCase
26 HtmlListBoxTestCase() { }
29 virtual void tearDown();
32 virtual wxItemContainer
*GetContainer() const { return m_htmllbox
; }
33 virtual wxWindow
*GetContainerWindow() const { return m_htmllbox
; }
35 CPPUNIT_TEST_SUITE( HtmlListBoxTestCase
);
36 wxITEM_CONTAINER_TESTS();
37 CPPUNIT_TEST_SUITE_END();
39 wxSimpleHtmlListBox
* m_htmllbox
;
41 DECLARE_NO_COPY_CLASS(HtmlListBoxTestCase
)
44 // register in the unnamed registry so that these tests are run by default
45 CPPUNIT_TEST_SUITE_REGISTRATION( HtmlListBoxTestCase
);
47 // also include in its own registry so that these tests can be run alone
48 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( HtmlListBoxTestCase
, "HtmlListBoxTestCase" );
50 void HtmlListBoxTestCase::setUp()
52 m_htmllbox
= new wxSimpleHtmlListBox(wxTheApp
->GetTopWindow(), wxID_ANY
);
55 void HtmlListBoxTestCase::tearDown()