From 7600e7660961c14ee539274d71a0ffe2314eb5ab Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 10 Mar 2014 19:23:08 +0100 Subject: add export validation tests for chart2 ODS and DOCX are still disabled Change-Id: I2ce30df5fe8977c83a77ca210d79530423bef76e --- chart2/qa/extras/charttest.hxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'chart2') diff --git a/chart2/qa/extras/charttest.hxx b/chart2/qa/extras/charttest.hxx index 68b4c8835dd6..d4eddddfcaaa 100644 --- a/chart2/qa/extras/charttest.hxx +++ b/chart2/qa/extras/charttest.hxx @@ -105,6 +105,19 @@ boost::shared_ptr ChartTest::reload(const OUString& rFilterName) mxComponent->dispose(); mxComponent = loadFromDesktop(pTempFile->GetURL(), maServiceName); std::cout << pTempFile->GetURL(); + if(rFilterName == "Calc Office Open XML") + { + validate(pTempFile->GetFileName(), test::OOXML); + } + else if(rFilterName == "Office Open XML Text") + { + // validate(pTempFile->GetFileName(), test::OOXML); + } + else if(rFilterName == "calc8") + { + // validate(pTempFile->GetFileName(), test::ODF); + } + CPPUNIT_ASSERT(mxComponent.is()); return pTempFile; } -- cgit