diff --git a/tests/graphics/clippingbox.cpp b/tests/graphics/clippingbox.cpp index 6074b00e3c..6068660f91 100644 --- a/tests/graphics/clippingbox.cpp +++ b/tests/graphics/clippingbox.cpp @@ -244,11 +244,7 @@ protected: // For GTK+ 3 wxDC is equivalent to wxGCDC // and hence doesn't need to be tested individually. #if !defined(__WXGTK3__) -// register in the unnamed registry so that these tests are run by default -CPPUNIT_TEST_SUITE_REGISTRATION( ClippingBoxTestCaseDC ); - -// also include in it's own registry so that these tests can be run alone -CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ClippingBoxTestCaseDC, "ClippingBoxTestCaseDC" ); +wxREGISTER_UNIT_TEST_WITH_TAGS(ClippingBoxTestCaseDC, "[clip][dc]"); #endif // !__WXGTK3__ #if wxUSE_GRAPHICS_CONTEXT @@ -342,11 +338,7 @@ protected: // For MSW we have individual test cases for each graphics renderer // so we don't need to test wxGCDC with default renderer. #ifndef __WXMSW__ -// register in the unnamed registry so that these tests are run by default -CPPUNIT_TEST_SUITE_REGISTRATION( ClippingBoxTestCaseGCDC ); - -// also include in it's own registry so that these tests can be run alone -CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ClippingBoxTestCaseGCDC, "ClippingBoxTestCaseGCDC" ); +wxREGISTER_UNIT_TEST_WITH_TAGS(ClippingBoxTestCaseGCDC, "[clip][gcdc]"); #endif // !__WXMSW__ #ifdef __WXMSW__ @@ -403,11 +395,7 @@ protected: wxDECLARE_NO_COPY_CLASS(ClippingBoxTestCaseGCDCGDIPlus); }; -// register in the unnamed registry so that these tests are run by default -CPPUNIT_TEST_SUITE_REGISTRATION( ClippingBoxTestCaseGCDCGDIPlus ); - -// also include in it's own registry so that these tests can be run alone -CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ClippingBoxTestCaseGCDCGDIPlus, "ClippingBoxTestCaseGCDCGDIPlus" ); +wxREGISTER_UNIT_TEST_WITH_TAGS(ClippingBoxTestCaseGCDCGDIPlus, "[clip][gcdc][gdi+]"); #endif // wxUSE_GRAPHICS_GDIPLUS @@ -472,11 +460,7 @@ protected: wxDECLARE_NO_COPY_CLASS(ClippingBoxTestCaseGCDCDirect2D); }; -// register in the unnamed registry so that these tests are run by default -CPPUNIT_TEST_SUITE_REGISTRATION( ClippingBoxTestCaseGCDCDirect2D ); - -// also include in it's own registry so that these tests can be run alone -CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ClippingBoxTestCaseGCDCDirect2D, "ClippingBoxTestCaseGCDCDirect2D" ); +wxREGISTER_UNIT_TEST_WITH_TAGS(ClippingBoxTestCaseGCDCDirect2D, "[clip][gcdc][d2d]"); #endif // wxUSE_GRAPHICS_DIRECT2D @@ -533,11 +517,7 @@ protected: wxDECLARE_NO_COPY_CLASS(ClippingBoxTestCaseGCDCCairo); }; -// register in the unnamed registry so that these tests are run by default -CPPUNIT_TEST_SUITE_REGISTRATION( ClippingBoxTestCaseGCDCCairo ); - -// also include in it's own registry so that these tests can be run alone -CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ClippingBoxTestCaseGCDCCairo, "ClippingBoxTestCaseGCDCCairo" ); +wxREGISTER_UNIT_TEST_WITH_TAGS(ClippingBoxTestCaseGCDCCairo, "[clip][gc][cairo]"); #endif // wxUSE_CAIRO @@ -1619,11 +1599,7 @@ protected: wxDECLARE_NO_COPY_CLASS(ClippingBoxTestCaseGCGDIPlus); }; -// register in the unnamed registry so that these tests are run by default -CPPUNIT_TEST_SUITE_REGISTRATION( ClippingBoxTestCaseGCGDIPlus ); - -// also include in it's own registry so that these tests can be run alone -CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ClippingBoxTestCaseGCGDIPlus, "ClippingBoxTestCaseGCGDIPlus" ); +wxREGISTER_UNIT_TEST_WITH_TAGS(ClippingBoxTestCaseGCGDIPlus, "[clip][gc][gdi+]"); #endif // wxUSE_GRAPHICS_GDIPLUS @@ -1673,11 +1649,7 @@ protected: wxDECLARE_NO_COPY_CLASS(ClippingBoxTestCaseGCDirect2D); }; -// register in the unnamed registry so that these tests are run by default -CPPUNIT_TEST_SUITE_REGISTRATION( ClippingBoxTestCaseGCDirect2D ); - -// also include in it's own registry so that these tests can be run alone -CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ClippingBoxTestCaseGCDirect2D, "ClippingBoxTestCaseGCDirect2D" ); +wxREGISTER_UNIT_TEST_WITH_TAGS(ClippingBoxTestCaseGCDirect2D, "[clip][gc][d2d]"); #endif // wxUSE_GRAPHICS_DIRECT2D @@ -1718,11 +1690,7 @@ protected: wxDECLARE_NO_COPY_CLASS(ClippingBoxTestCaseGCCairo); }; -// register in the unnamed registry so that these tests are run by default -CPPUNIT_TEST_SUITE_REGISTRATION( ClippingBoxTestCaseGCCairo ); - -// also include in it's own registry so that these tests can be run alone -CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ClippingBoxTestCaseGCCairo, "ClippingBoxTestCaseGCCairo" ); +wxREGISTER_UNIT_TEST_WITH_TAGS(ClippingBoxTestCaseGCCairo, "[clip][gc][cairo]"); #endif // wxUSE_CAIRO @@ -1761,11 +1729,7 @@ protected: wxDECLARE_NO_COPY_CLASS(ClippingBoxTestCaseGCCoreGraphics); }; -// register in the unnamed registry so that these tests are run by default -CPPUNIT_TEST_SUITE_REGISTRATION( ClippingBoxTestCaseGCCoreGraphics ); - -// also include in it's own registry so that these tests can be run alone -CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ClippingBoxTestCaseGCCoreGraphics, "ClippingBoxTestCaseGCCoreGraphics" ); +wxREGISTER_UNIT_TEST_WITH_TAGS(ClippingBoxTestCaseGCCoreGraphics, "[clip][gc][cg]"); #endif // __WXOSX__