]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Merge branch 'BR_MULTI_BATHS' into HEAD
authorisn <isn@opencascade.com>
Tue, 13 Sep 2016 12:48:12 +0000 (15:48 +0300)
committerisn <isn@opencascade.com>
Tue, 13 Sep 2016 12:48:12 +0000 (15:48 +0300)
1  2 
src/HYDRO_tests/TestViewer.cxx

index 904dbc93d0029bd309b6787d226403a825f5914e,a8599d348b432d1b0085d1e534d7d3a51984170d..fce3baadf3643f100b23246b8d3b323bc88395bd
@@@ -257,18 -257,11 +257,18 @@@ bool AreImagesEqual( const QImage& theI
    return true;
  }
  
 -bool TestViewer::AssertImages( QString& theMessage )
 +bool TestViewer::AssertImages( QString& theMessage, const QImage* theImage, const char* theCase )
  {
 -  QImage anActualImage = viewWindow()->dumpView();
 +  QImage anActualImage;
 +  if( theImage )
 +    anActualImage = *theImage;
 +  else
 +    anActualImage = viewWindow()->dumpView();
 +
 +  if( theCase )
 +    myKey = theCase;
  
-   QString anExpectedRefFilePath = qgetenv( "HYDRO_ROOT_DIR" ) + "/bin/salome/test/HYDRO";
+   QString anExpectedRefFilePath = qgetenv( "HYDRO_ROOT_DIR" ) + "/bin/salome/test";
    anExpectedRefFilePath += "/" + myKey + ".png";
    QImage anExpectedRefImage; 
    anExpectedRefImage.load( anExpectedRefFilePath );