summaryrefslogtreecommitdiff
path: root/chart2/qa
diff options
context:
space:
mode:
authorMuthu Subramanian <muthu.subramanian.karunanidhi@ericsson.com>2014-10-10 19:01:03 +0530
committerMuthu Subramanian <muthu.subramanian.karunanidhi@ericsson.com>2014-10-10 19:14:23 +0530
commite60183503e0cefd567f20b300d674fcbd75f1fb5 (patch)
treec73deb2c13d09f088955d420df760d5ad3dfe572 /chart2/qa
parentaad90e18cd00ac8af6bcddf14e4e19c9475dedbf (diff)
fdo#54361: Add additional unit test case.
Change-Id: Ifa3fd6f074d1957a468a1dad5dc2c223d38d24d4
Diffstat (limited to 'chart2/qa')
-rw-r--r--chart2/qa/extras/chart2import.cxx11
-rw-r--r--chart2/qa/extras/data/xlsx/fdo54361-1.xlsxbin0 -> 11106 bytes
2 files changed, 9 insertions, 2 deletions
diff --git a/chart2/qa/extras/chart2import.cxx b/chart2/qa/extras/chart2import.cxx
index 302d2b5e0e70..f8c545a1d4fb 100644
--- a/chart2/qa/extras/chart2import.cxx
+++ b/chart2/qa/extras/chart2import.cxx
@@ -55,6 +55,8 @@ public:
void testAutoBackgroundXLSX();
void testNumberFormatsXLSX();
+ void testTransparentBackground(OUString filename);
+
CPPUNIT_TEST_SUITE(Chart2ImportTest);
CPPUNIT_TEST(Fdo60083);
CPPUNIT_TEST(testSteppedLines);
@@ -593,9 +595,9 @@ void Chart2ImportTest::testFdo78080()
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);
CPPUNIT_ASSERT_MESSAGE("failed to load chart", xChartDoc.is());
@@ -610,6 +612,11 @@ void Chart2ImportTest::testFdo54361()
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()
{
diff --git a/chart2/qa/extras/data/xlsx/fdo54361-1.xlsx b/chart2/qa/extras/data/xlsx/fdo54361-1.xlsx
new file mode 100644
index 000000000000..dba79ef9cf39
--- /dev/null
+++ b/chart2/qa/extras/data/xlsx/fdo54361-1.xlsx
Binary files differ