summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-10-16 22:35:10 +0200
committerMichael Stahl <mstahl@redhat.com>2014-10-20 15:27:04 +0200
commitf5e135bb250e3f5fdae9e7b48cc4e92f027b65d8 (patch)
tree557b9228cd14629b6c01de52abd426e67a46a7d0 /chart2
parent9a1889f0cb87fe50bb1f6b2afd7ff7c3ebe20590 (diff)
chart2: fix temp file leaks in Chart2ExportTest
Change-Id: Id128f19dee056189a34a02156fd0bf3ac14c2454
Diffstat (limited to 'chart2')
-rw-r--r--chart2/qa/extras/chart2export.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx
index 38bd92fb3df8..fc2930537494 100644
--- a/chart2/qa/extras/chart2export.cxx
+++ b/chart2/qa/extras/chart2export.cxx
@@ -40,6 +40,8 @@ public:
void test();
void testErrorBarXLSX();
void testTrendline();
+ void testTrendlineOOXML();
+ void testTrendlineXLS();
void testStockChart();
void testBarChart();
void testCrosses();
@@ -82,6 +84,8 @@ public:
CPPUNIT_TEST(test);
CPPUNIT_TEST(testErrorBarXLSX);
CPPUNIT_TEST(testTrendline);
+ CPPUNIT_TEST(testTrendlineOOXML);
+ CPPUNIT_TEST(testTrendlineXLS);
CPPUNIT_TEST(testStockChart);
CPPUNIT_TEST(testBarChart);
CPPUNIT_TEST(testCrosses);
@@ -410,17 +414,22 @@ void Chart2ExportTest::testTrendline()
checkTrendlinesInChart(getChartDocFromSheet( 0, mxComponent));
reload("calc8");
checkTrendlinesInChart(getChartDocFromSheet( 0, mxComponent));
+}
+void Chart2ExportTest::testTrendlineOOXML()
+{
load("/chart2/qa/extras/data/ods/", "trendline.ods");
checkTrendlinesInChart(getChartDocFromSheet( 0, mxComponent));
reload("Calc Office Open XML");
checkTrendlinesInChart(getChartDocFromSheet( 0, mxComponent));
+}
+void Chart2ExportTest::testTrendlineXLS()
+{
load("/chart2/qa/extras/data/ods/", "trendline.ods");
checkTrendlinesInChart(getChartDocFromSheet( 0, mxComponent));
reload("MS Excel 97");
checkTrendlinesInChart(getChartDocFromSheet( 0, mxComponent));
-
}
void Chart2ExportTest::testStockChart()