+
+#define CPPUNIT_ASSERT_IMAGES \
+ { \
+ QString aMessage; \
+ if( !TestViewer::AssertImages( aMessage ) ) \
+ { \
+ TestViewer::showColorScale( false ); \
+ std::string aMessageStl = aMessage.toStdString(); \
+ CPPUNIT_FAIL( aMessageStl.c_str() ); \
+ } \
+ } \
+
+#define CPPUNIT_ASSERT_IMAGES2( theImage, theCase ) \
+ { \
+ QString aMessage; \
+ if( !TestViewer::AssertImages( aMessage, theImage, theCase ) ) \
+ { \
+ TestViewer::showColorScale( false ); \
+ std::string aMessageStl = aMessage.toStdString(); \
+ CPPUNIT_FAIL( aMessageStl.c_str() ); \
+ } \
+ } \
+
+#define CPPUNIT_ASSERT_IMAGES3( theImage, theCase, theSwapRGB ) \
+ { \
+ QString aMessage; \
+ if( !TestViewer::AssertImages( aMessage, theImage, theCase, theSwapRGB ) ) \
+ { \
+ TestViewer::showColorScale( false ); \
+ std::string aMessageStl = aMessage.toStdString(); \
+ CPPUNIT_FAIL( aMessageStl.c_str() ); \
+ } \
+ }
+
+#define CPPUNIT_ASSERT_SCRIPTS_EQUAL( theBaseName, \
+ isExpectedUtf8, \
+ isActualUtf8, \
+ theLinesToOmit ) \
+ { \
+ QString aMsg; \
+ if( !TestViewer::areScriptsEqual( \
+ theBaseName, isExpectedUtf8, \
+ isActualUtf8, theLinesToOmit, aMsg ) ) \
+ { \
+ std::string aStlMsg = "Scripts are not equal: " + \
+ aMsg.toStdString(); \
+ CPPUNIT_FAIL( aStlMsg ); \
+ } \
+ } \
+ \
+