Kaydet (Commit) 9a1889f0 authored tarafından Michael Stahl's avatar Michael Stahl

chart2: fix temp file leak caused by missing tearDown() between tests

Change-Id: Ia4ee76743c640c0c5b92ec169e619f6c8788480e
üst 6e355d95
...@@ -54,6 +54,7 @@ public: ...@@ -54,6 +54,7 @@ public:
void testFlatODSStackedColumnChart(); void testFlatODSStackedColumnChart();
void testFdo78080(); void testFdo78080();
void testFdo54361(); void testFdo54361();
void testFdo54361_1();
void testAutoBackgroundXLSX(); void testAutoBackgroundXLSX();
void testTextCanOverlapXLSX(); void testTextCanOverlapXLSX();
void testNumberFormatsXLSX(); void testNumberFormatsXLSX();
...@@ -84,6 +85,7 @@ public: ...@@ -84,6 +85,7 @@ public:
CPPUNIT_TEST(testFlatODSStackedColumnChart); CPPUNIT_TEST(testFlatODSStackedColumnChart);
CPPUNIT_TEST(testFdo78080); CPPUNIT_TEST(testFdo78080);
CPPUNIT_TEST(testFdo54361); CPPUNIT_TEST(testFdo54361);
CPPUNIT_TEST(testFdo54361_1);
CPPUNIT_TEST(testAutoBackgroundXLSX); CPPUNIT_TEST(testAutoBackgroundXLSX);
CPPUNIT_TEST(testTextCanOverlapXLSX); CPPUNIT_TEST(testTextCanOverlapXLSX);
CPPUNIT_TEST(testNumberFormatsXLSX); CPPUNIT_TEST(testNumberFormatsXLSX);
...@@ -610,9 +612,13 @@ void Chart2ImportTest::testTransparentBackground(OUString const & filename) ...@@ -610,9 +612,13 @@ void Chart2ImportTest::testTransparentBackground(OUString const & filename)
CPPUNIT_ASSERT_MESSAGE("Background needs to be with solid fill style", aStyle == 1); CPPUNIT_ASSERT_MESSAGE("Background needs to be with solid fill style", aStyle == 1);
} }
// 2 test methods here so that tearDown() can dispose the document
void Chart2ImportTest::testFdo54361() void Chart2ImportTest::testFdo54361()
{ {
testTransparentBackground("fdo54361.xlsx"); testTransparentBackground("fdo54361.xlsx");
}
void Chart2ImportTest::testFdo54361_1()
{
testTransparentBackground("fdo54361-1.xlsx"); testTransparentBackground("fdo54361-1.xlsx");
} }
......
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