Commit 87f92d15 authored by Marcus D. Hanwell's avatar Marcus D. Hanwell
Browse files

ENH: Use the vtkTestingObjectFactory.

This allows me to remove some boilerplate code, which still allowing
interactive use of the tests.
parent 71c9ca45
......@@ -103,11 +103,7 @@ int TestGLSL( int argc, char * argv [] )
view->GetRenderWindow()->SetMultiSamples(0);
int retVal = vtkRegressionTestImage(view->GetRenderWindow());
if(retVal == vtkRegressionTester::DO_INTERACTOR)
{
view->GetInteractor()->Initialize();
view->GetInteractor()->Start();
}
view->GetInteractor()->Start();
if (test->IsCompiled)
{
......
......@@ -79,12 +79,6 @@ int TestLinePlot( int argc, char * argv [] )
//Finally render the scene and compare the image to a reference image
view->GetRenderWindow()->SetMultiSamples(0);
int retVal = vtkRegressionTestImageThreshold(view->GetRenderWindow(), 25);
//int retVal = vtkRegressionTestImage(view->GetRenderWindow());
if(retVal == vtkRegressionTester::DO_INTERACTOR)
{
view->GetInteractor()->Initialize();
view->GetInteractor()->Start();
}
view->GetInteractor()->Start();
return !retVal;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment