summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-03-10 19:23:08 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-03-10 19:46:04 +0100
commit7600e7660961c14ee539274d71a0ffe2314eb5ab (patch)
tree77e8aff05a4f97047b69919826dd1004c4601abe /chart2
parenta49a9dab3168c03a539adc131f2ade03236edb69 (diff)
add export validation tests for chart2
ODS and DOCX are still disabled Change-Id: I2ce30df5fe8977c83a77ca210d79530423bef76e
Diffstat (limited to 'chart2')
-rw-r--r--chart2/qa/extras/charttest.hxx13
1 files changed, 13 insertions, 0 deletions
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<utl::TempFile> 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;
}