Add a common tag for wxItemContainer-derived classes tests
This makes it possible to run the tests for all controls implementing wxItemContainer interface by just passing "[item-container]" on the test command line.
This commit is contained in:
@@ -77,12 +77,8 @@ private:
|
|||||||
wxDECLARE_NO_COPY_CLASS(BitmapComboBoxTestCase);
|
wxDECLARE_NO_COPY_CLASS(BitmapComboBoxTestCase);
|
||||||
};
|
};
|
||||||
|
|
||||||
// register in the unnamed registry so that these tests are run by default
|
wxREGISTER_UNIT_TEST_WITH_TAGS(BitmapComboBoxTestCase,
|
||||||
CPPUNIT_TEST_SUITE_REGISTRATION( BitmapComboBoxTestCase );
|
"[BitmapComboBoxTestCase][item-container]");
|
||||||
|
|
||||||
// also include in its own registry so that these tests can be run alone
|
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( BitmapComboBoxTestCase,
|
|
||||||
"BitmapComboBoxTestCase" );
|
|
||||||
|
|
||||||
void BitmapComboBoxTestCase::setUp()
|
void BitmapComboBoxTestCase::setUp()
|
||||||
{
|
{
|
||||||
|
@@ -46,11 +46,8 @@ private:
|
|||||||
wxDECLARE_NO_COPY_CLASS(CheckListBoxTestCase);
|
wxDECLARE_NO_COPY_CLASS(CheckListBoxTestCase);
|
||||||
};
|
};
|
||||||
|
|
||||||
// register in the unnamed registry so that these tests are run by default
|
wxREGISTER_UNIT_TEST_WITH_TAGS(CheckListBoxTestCase,
|
||||||
CPPUNIT_TEST_SUITE_REGISTRATION( CheckListBoxTestCase );
|
"[CheckListBoxTestCase][item-container]");
|
||||||
|
|
||||||
// also include in its own registry so that these tests can be run alone
|
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( CheckListBoxTestCase, "CheckListBoxTestCase" );
|
|
||||||
|
|
||||||
void CheckListBoxTestCase::setUp()
|
void CheckListBoxTestCase::setUp()
|
||||||
{
|
{
|
||||||
|
@@ -45,11 +45,8 @@ private:
|
|||||||
wxDECLARE_NO_COPY_CLASS(ChoiceTestCase);
|
wxDECLARE_NO_COPY_CLASS(ChoiceTestCase);
|
||||||
};
|
};
|
||||||
|
|
||||||
// register in the unnamed registry so that these tests are run by default
|
wxREGISTER_UNIT_TEST_WITH_TAGS(ChoiceTestCase,
|
||||||
CPPUNIT_TEST_SUITE_REGISTRATION( ChoiceTestCase );
|
"[ChoiceTestCase][item-container]");
|
||||||
|
|
||||||
// also include in its own registry so that these tests can be run alone
|
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ChoiceTestCase, "ChoiceTestCase" );
|
|
||||||
|
|
||||||
void ChoiceTestCase::setUp()
|
void ChoiceTestCase::setUp()
|
||||||
{
|
{
|
||||||
|
@@ -88,11 +88,8 @@ private:
|
|||||||
wxDECLARE_NO_COPY_CLASS(ComboBoxTestCase);
|
wxDECLARE_NO_COPY_CLASS(ComboBoxTestCase);
|
||||||
};
|
};
|
||||||
|
|
||||||
// register in the unnamed registry so that these tests are run by default
|
wxREGISTER_UNIT_TEST_WITH_TAGS(ComboBoxTestCase,
|
||||||
CPPUNIT_TEST_SUITE_REGISTRATION( ComboBoxTestCase );
|
"[ComboBoxTestCase][item-container]");
|
||||||
|
|
||||||
// also include in its own registry so that these tests can be run alone
|
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ComboBoxTestCase, "ComboBoxTestCase" );
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// test initialization
|
// test initialization
|
||||||
|
@@ -43,11 +43,8 @@ private:
|
|||||||
wxDECLARE_NO_COPY_CLASS(HtmlListBoxTestCase);
|
wxDECLARE_NO_COPY_CLASS(HtmlListBoxTestCase);
|
||||||
};
|
};
|
||||||
|
|
||||||
// register in the unnamed registry so that these tests are run by default
|
wxREGISTER_UNIT_TEST_WITH_TAGS(HtmlListBoxTestCase,
|
||||||
CPPUNIT_TEST_SUITE_REGISTRATION( HtmlListBoxTestCase );
|
"[HtmlListBoxTestCase][item-container]");
|
||||||
|
|
||||||
// also include in its own registry so that these tests can be run alone
|
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( HtmlListBoxTestCase, "HtmlListBoxTestCase" );
|
|
||||||
|
|
||||||
void HtmlListBoxTestCase::setUp()
|
void HtmlListBoxTestCase::setUp()
|
||||||
{
|
{
|
||||||
|
@@ -68,11 +68,8 @@ private:
|
|||||||
wxDECLARE_NO_COPY_CLASS(ListBoxTestCase);
|
wxDECLARE_NO_COPY_CLASS(ListBoxTestCase);
|
||||||
};
|
};
|
||||||
|
|
||||||
// register in the unnamed registry so that these tests are run by default
|
wxREGISTER_UNIT_TEST_WITH_TAGS(ListBoxTestCase,
|
||||||
CPPUNIT_TEST_SUITE_REGISTRATION( ListBoxTestCase );
|
"[ListBoxTestCase][item-container]");
|
||||||
|
|
||||||
// also include in its own registry so that these tests can be run alone
|
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ListBoxTestCase, "ListBoxTestCase" );
|
|
||||||
|
|
||||||
//initialise the static variable
|
//initialise the static variable
|
||||||
bool ListBoxTestCase::ms_ownerdrawn = false;
|
bool ListBoxTestCase::ms_ownerdrawn = false;
|
||||||
|
@@ -75,12 +75,8 @@ private:
|
|||||||
wxDECLARE_NO_COPY_CLASS(OwnerDrawnComboBoxTestCase);
|
wxDECLARE_NO_COPY_CLASS(OwnerDrawnComboBoxTestCase);
|
||||||
};
|
};
|
||||||
|
|
||||||
// register in the unnamed registry so that these tests are run by default
|
wxREGISTER_UNIT_TEST_WITH_TAGS(OwnerDrawnComboBoxTestCase,
|
||||||
CPPUNIT_TEST_SUITE_REGISTRATION( OwnerDrawnComboBoxTestCase );
|
"[OwnerDrawnComboBoxTestCase][item-container]");
|
||||||
|
|
||||||
// also include in its own registry so that these tests can be run alone
|
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( OwnerDrawnComboBoxTestCase,
|
|
||||||
"OwnerDrawnComboBoxTestCase" );
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// test initialization
|
// test initialization
|
||||||
|
@@ -46,11 +46,8 @@ private:
|
|||||||
wxDECLARE_NO_COPY_CLASS(RearrangeListTestCase);
|
wxDECLARE_NO_COPY_CLASS(RearrangeListTestCase);
|
||||||
};
|
};
|
||||||
|
|
||||||
// register in the unnamed registry so that these tests are run by default
|
wxREGISTER_UNIT_TEST_WITH_TAGS(RearrangeListTestCase,
|
||||||
CPPUNIT_TEST_SUITE_REGISTRATION( RearrangeListTestCase );
|
"[RearrangeListTestCase][item-container]");
|
||||||
|
|
||||||
// also include in its own registry so that these tests can be run alone
|
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( RearrangeListTestCase, "RearrangeListTestCase" );
|
|
||||||
|
|
||||||
void RearrangeListTestCase::setUp()
|
void RearrangeListTestCase::setUp()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user