2010-11-27 06:34:34 -05:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: tests/controls/htmllboxtest.cpp
|
|
|
|
// Purpose: wxSimpleHtmlListBoxNameStr unit test
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Created: 2010-11-27
|
|
|
|
// Copyright: (c) 2010 Vadim Zeitlin <vadim@wxwidgets.org>
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "testprec.h"
|
|
|
|
|
2018-09-18 13:14:12 -04:00
|
|
|
#if wxUSE_HTML
|
|
|
|
|
2010-11-27 06:34:34 -05:00
|
|
|
#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() { }
|
|
|
|
|
2018-07-29 05:09:17 -04:00
|
|
|
virtual void setUp() wxOVERRIDE;
|
|
|
|
virtual void tearDown() wxOVERRIDE;
|
2010-11-27 06:34:34 -05:00
|
|
|
|
|
|
|
private:
|
2018-07-29 05:09:17 -04:00
|
|
|
virtual wxItemContainer *GetContainer() const wxOVERRIDE { return m_htmllbox; }
|
|
|
|
virtual wxWindow *GetContainerWindow() const wxOVERRIDE { return m_htmllbox; }
|
2010-11-27 06:34:34 -05:00
|
|
|
|
|
|
|
CPPUNIT_TEST_SUITE( HtmlListBoxTestCase );
|
|
|
|
wxITEM_CONTAINER_TESTS();
|
|
|
|
CPPUNIT_TEST_SUITE_END();
|
|
|
|
|
|
|
|
wxSimpleHtmlListBox* m_htmllbox;
|
|
|
|
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_NO_COPY_CLASS(HtmlListBoxTestCase);
|
2010-11-27 06:34:34 -05:00
|
|
|
};
|
|
|
|
|
2018-12-15 17:00:55 -05:00
|
|
|
wxREGISTER_UNIT_TEST_WITH_TAGS(HtmlListBoxTestCase,
|
|
|
|
"[HtmlListBoxTestCase][item-container]");
|
2010-11-27 06:34:34 -05:00
|
|
|
|
|
|
|
void HtmlListBoxTestCase::setUp()
|
|
|
|
{
|
|
|
|
m_htmllbox = new wxSimpleHtmlListBox(wxTheApp->GetTopWindow(), wxID_ANY);
|
|
|
|
}
|
|
|
|
|
|
|
|
void HtmlListBoxTestCase::tearDown()
|
|
|
|
{
|
|
|
|
wxDELETE(m_htmllbox);
|
|
|
|
}
|
2018-09-18 13:14:12 -04:00
|
|
|
|
|
|
|
#endif //wxUSE_HTML
|