summaryrefslogtreecommitdiff
path: root/chart2/qa/extras/chart2import.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-04-30 06:50:36 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-04-30 08:13:20 +0200
commit08dc203cecc225b8e191ec894160516fede91a90 (patch)
tree2532af0a7d2407e9bd1e2da9b0651ff64ac563d1 /chart2/qa/extras/chart2import.cxx
parent368e8b83e13106905d021b4c12983ba28e4a9110 (diff)
add test for rAngAx OOXML default value
Change-Id: Iaad4aa553564e31726b31ebf890ef0376c8f1690
Diffstat (limited to 'chart2/qa/extras/chart2import.cxx')
-rw-r--r--chart2/qa/extras/chart2import.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/chart2/qa/extras/chart2import.cxx b/chart2/qa/extras/chart2import.cxx
index c559ddad94f5..c69e0d3ca6f4 100644
--- a/chart2/qa/extras/chart2import.cxx
+++ b/chart2/qa/extras/chart2import.cxx
@@ -79,6 +79,7 @@ public:
void testVaryColorDefaultValues2007XLSX();
void testVaryColorDefaultValues2013XLSX();
void testPlotVisOnlyDefaultValue2013XLSX();
+ void testRAngAxDefaultValue2013XLSX();
CPPUNIT_TEST_SUITE(Chart2ImportTest);
CPPUNIT_TEST(Fdo60083);
@@ -121,6 +122,7 @@ public:
CPPUNIT_TEST(testVaryColorDefaultValues2007XLSX);
CPPUNIT_TEST(testVaryColorDefaultValues2013XLSX);
CPPUNIT_TEST(testPlotVisOnlyDefaultValue2013XLSX);
+ CPPUNIT_TEST(testRAngAxDefaultValue2013XLSX);
CPPUNIT_TEST_SUITE_END();
private:
@@ -959,6 +961,19 @@ void Chart2ImportTest::testPlotVisOnlyDefaultValue2013XLSX()
CPPUNIT_ASSERT(!bShowHiddenValues);
}
+void Chart2ImportTest::testRAngAxDefaultValue2013XLSX()
+{
+ load("/chart2/qa/extras/data/xlsx/", "rAngAx.xlsx");
+ uno::Reference< chart::XChartDocument > xChart1Doc ( getChartCompFromSheet( 0, mxComponent ), UNO_QUERY_THROW);
+ CPPUNIT_ASSERT_MESSAGE("failed to load chart", xChart1Doc.is());
+ Reference<beans::XPropertySet> xPropSet(xChart1Doc->getDiagram(), uno::UNO_QUERY_THROW);
+ uno::Any aAny = xPropSet->getPropertyValue("RightAngledAxes");
+ CPPUNIT_ASSERT(aAny.hasValue());
+ bool bRightAngleAxes = false;
+ CPPUNIT_ASSERT(aAny >>= bRightAngleAxes);
+ CPPUNIT_ASSERT(bRightAngleAxes);
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(Chart2ImportTest);
CPPUNIT_PLUGIN_IMPLEMENT();