mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5185 Regression Test : Always set regression image size on snapshot commands
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "RiaGuiApplication.h"
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaRegressionTestRunner.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
@@ -87,6 +88,13 @@ RicfCommandResponse RicfExportSnapshots::execute()
|
||||
}
|
||||
if ( m_type == RicfExportSnapshots::VIEWS || m_type == RicfExportSnapshots::ALL )
|
||||
{
|
||||
if ( RiaRegressionTestRunner::instance()->isRunningRegressionTests() )
|
||||
{
|
||||
RiaRegressionTestRunner::setDefaultSnapshotSizeFor3dViews();
|
||||
|
||||
QApplication::processEvents();
|
||||
}
|
||||
|
||||
RicSnapshotAllViewsToFileFeature::exportSnapshotOfViewsIntoFolder( absolutePathToSnapshotDir,
|
||||
m_prefix,
|
||||
m_caseId(),
|
||||
@@ -94,6 +102,13 @@ RicfCommandResponse RicfExportSnapshots::execute()
|
||||
}
|
||||
if ( m_type == RicfExportSnapshots::PLOTS || m_type == RicfExportSnapshots::ALL )
|
||||
{
|
||||
if ( RiaRegressionTestRunner::instance()->isRunningRegressionTests() )
|
||||
{
|
||||
RiaRegressionTestRunner::setDefaultSnapshotSizeForPlotWindows();
|
||||
|
||||
QApplication::processEvents();
|
||||
}
|
||||
|
||||
RicSnapshotAllPlotsToFileFeature::exportSnapshotOfPlotsIntoFolder( absolutePathToSnapshotDir,
|
||||
m_prefix,
|
||||
m_viewId() );
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaRegressionTestRunner.h"
|
||||
|
||||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
@@ -57,11 +56,6 @@ RicfCommandResponse RicfOpenProject::execute()
|
||||
return RicfCommandResponse( RicfCommandResponse::COMMAND_ERROR, errMsg );
|
||||
}
|
||||
|
||||
if ( RiaRegressionTestRunner::instance()->isRunningRegressionTests() )
|
||||
{
|
||||
RiaRegressionTestRunner::setDefaultFixedWindowSizeFor3dViews();
|
||||
}
|
||||
|
||||
RicfCommandFileExecutor::instance()->setLastProjectPath( projectPath );
|
||||
|
||||
return RicfCommandResponse();
|
||||
|
||||
Reference in New Issue
Block a user