Kaydet (Commit) e6018350 authored tarafından Muthu Subramanian's avatar Muthu Subramanian

fdo#54361: Add additional unit test case.

Change-Id: Ifa3fd6f074d1957a468a1dad5dc2c223d38d24d4
üst aad90e18
...@@ -55,6 +55,8 @@ public: ...@@ -55,6 +55,8 @@ public:
void testAutoBackgroundXLSX(); void testAutoBackgroundXLSX();
void testNumberFormatsXLSX(); void testNumberFormatsXLSX();
void testTransparentBackground(OUString filename);
CPPUNIT_TEST_SUITE(Chart2ImportTest); CPPUNIT_TEST_SUITE(Chart2ImportTest);
CPPUNIT_TEST(Fdo60083); CPPUNIT_TEST(Fdo60083);
CPPUNIT_TEST(testSteppedLines); CPPUNIT_TEST(testSteppedLines);
...@@ -593,9 +595,9 @@ void Chart2ImportTest::testFdo78080() ...@@ -593,9 +595,9 @@ void Chart2ImportTest::testFdo78080()
CPPUNIT_ASSERT(!xTitle.is()); CPPUNIT_ASSERT(!xTitle.is());
} }
void Chart2ImportTest::testFdo54361() void Chart2ImportTest::testTransparentBackground(OUString filename)
{ {
load("/chart2/qa/extras/data/xlsx/", "fdo54361.xlsx"); load("/chart2/qa/extras/data/xlsx/", filename);
uno::Reference< chart2::XChartDocument > xChartDoc = getChartDocFromSheet(0, mxComponent); uno::Reference< chart2::XChartDocument > xChartDoc = getChartDocFromSheet(0, mxComponent);
CPPUNIT_ASSERT_MESSAGE("failed to load chart", xChartDoc.is()); CPPUNIT_ASSERT_MESSAGE("failed to load chart", xChartDoc.is());
...@@ -610,6 +612,11 @@ void Chart2ImportTest::testFdo54361() ...@@ -610,6 +612,11 @@ void Chart2ImportTest::testFdo54361()
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);
} }
void Chart2ImportTest::testFdo54361()
{
testTransparentBackground("fdo54361.xlsx");
testTransparentBackground("fdo54361-1.xlsx");
}
void Chart2ImportTest::testAutoBackgroundXLSX() void Chart2ImportTest::testAutoBackgroundXLSX()
{ {
......
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