enable the export validation for chart ODS tests

Don't even think about using the new skip flag for your shiny new test.
If you itnroduce tests that show validation errors fix them!!

Change-Id: I21bf61a113a35ca204a54d18246848a5788ae559
This commit is contained in:
Markus Mohrhard
2014-03-26 23:55:56 +01:00
committed by Markus Mohrhard
parent 712daf33c8
commit 0b4712812f
2 changed files with 5 additions and 1 deletions

View File

@@ -421,6 +421,7 @@ void Chart2ExportTest::testErrorBarXLSX()
// in an export -> import cycle using different file formats - ODS, XLS and XLSX.
void Chart2ExportTest::testTrendline()
{
mbSkipValidation = true;
load("/chart2/qa/extras/data/ods/", "trendline.ods");
checkTrendlinesInChart(getChartDocFromSheet( 0, mxComponent));
reload("calc8");

View File

@@ -52,6 +52,7 @@ using namespace com::sun::star::uno;
class ChartTest : public test::BootstrapFixture, public unotest::MacrosTest
{
public:
ChartTest():mbSkipValidation(false) {}
void load( const OUString& rDir, const OUString& rFileName );
boost::shared_ptr<utl::TempFile> reload( const OUString& rFileName );
uno::Sequence < OUString > getImpressChartColumnDescriptions( const char* pDir, const char* pName );
@@ -65,6 +66,7 @@ public:
protected:
Reference< lang::XComponent > mxComponent;
OUString maServiceName;
bool mbSkipValidation; // if you set this flag for a new test I'm going to haunt you!
};
OUString ChartTest::getFileExtension( const OUString& aFileName )
@@ -112,7 +114,8 @@ boost::shared_ptr<utl::TempFile> ChartTest::reload(const OUString& rFilterName)
}
else if(rFilterName == "calc8")
{
validate(pTempFile->GetFileName(), test::ODF);
if(!mbSkipValidation)
validate(pTempFile->GetFileName(), test::ODF);
}
CPPUNIT_ASSERT(mxComponent.is());