summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-11 07:58:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-11 07:58:24 +0200
commit967157a4bab4e73036bd1354315e8f3a3e084145 (patch)
tree39740d578fb281e35afb92c2d1ccff534e4ded5b /chart2
parent7b72e5051437d7ecfdb3658375b3cb09b1b4abf8 (diff)
loplugin:unreffun
Change-Id: I3d5ddbca7760a32231ef7fee19b45bca83667ca7
Diffstat (limited to 'chart2')
-rw-r--r--chart2/qa/extras/chart2export.cxx82
1 files changed, 41 insertions, 41 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx
index 8ad51b66e25d..6d83a8a64fe4 100644
--- a/chart2/qa/extras/chart2export.cxx
+++ b/chart2/qa/extras/chart2export.cxx
@@ -50,7 +50,7 @@ public:
void testShapeFollowedByChart();
void testPieChartDataLabels();
void testSeriesIdxOrder();
- void testScatterPlotLabels();
+ // void testScatterPlotLabels();
void testErrorBarDataRangeODS();
void testChartCrash();
void testPieChartRotation();
@@ -714,46 +714,46 @@ void Chart2ExportTest::testSeriesIdxOrder()
assertXPath(pXmlDoc, "/c:chartSpace[1]/c:chart[1]/c:plotArea[1]/c:lineChart[1]/c:ser[1]/c:order[1]", "val", "1");
}
-void Chart2ExportTest::testScatterPlotLabels()
-{
- load("/chart2/qa/extras/data/odg/", "scatter-plot-labels.odg");
- Reference<chart2::XChartDocument> xChartDoc(getChartDocFromDrawImpress(0, 0), uno::UNO_QUERY);
- CPPUNIT_ASSERT(xChartDoc.is());
-
- Reference<chart2::XChartType> xCT = getChartTypeFromDoc(xChartDoc, 0, 0);
- CPPUNIT_ASSERT(xCT.is());
-
- OUString aLabelRole = xCT->getRoleOfSequenceForSeriesLabel();
-
- Reference<chart2::XDataSeriesContainer> xDSCont(xCT, uno::UNO_QUERY);
- CPPUNIT_ASSERT(xDSCont.is());
- Sequence<uno::Reference<chart2::XDataSeries> > aDataSeriesSeq = xDSCont->getDataSeries();
- CPPUNIT_ASSERT_EQUAL(sal_Int32(3), aDataSeriesSeq.getLength());
-
- for (sal_Int32 i = 0; i < aDataSeriesSeq.getLength(); ++i)
- {
- uno::Reference<chart2::data::XDataSource> xDSrc(aDataSeriesSeq[i], uno::UNO_QUERY);
- CPPUNIT_ASSERT(xDSrc.is());
- uno::Sequence<Reference<chart2::data::XLabeledDataSequence> > aDataSeqs = xDSrc->getDataSequences();
- for (sal_Int32 j = 0; j < aDataSeqs.getLength(); ++j)
- {
- Reference<chart2::data::XDataSequence> xValues = aDataSeqs[j]->getValues();
- CPPUNIT_ASSERT(xValues.is());
- Reference<beans::XPropertySet> xPropSet(xValues, uno::UNO_QUERY);
- if (!xPropSet.is())
- continue;
-
- OUString aRoleName;
- xPropSet->getPropertyValue("Role") >>= aRoleName;
- if (aRoleName == aLabelRole)
- {
- // TODO : Check the data series labels.
- }
- }
- }
-
- CPPUNIT_ASSERT(false);
-}
+// void Chart2ExportTest::testScatterPlotLabels()
+// {
+// load("/chart2/qa/extras/data/odg/", "scatter-plot-labels.odg");
+// Reference<chart2::XChartDocument> xChartDoc(getChartDocFromDrawImpress(0, 0), uno::UNO_QUERY);
+// CPPUNIT_ASSERT(xChartDoc.is());
+//
+// Reference<chart2::XChartType> xCT = getChartTypeFromDoc(xChartDoc, 0, 0);
+// CPPUNIT_ASSERT(xCT.is());
+//
+// OUString aLabelRole = xCT->getRoleOfSequenceForSeriesLabel();
+//
+// Reference<chart2::XDataSeriesContainer> xDSCont(xCT, uno::UNO_QUERY);
+// CPPUNIT_ASSERT(xDSCont.is());
+// Sequence<uno::Reference<chart2::XDataSeries> > aDataSeriesSeq = xDSCont->getDataSeries();
+// CPPUNIT_ASSERT_EQUAL(sal_Int32(3), aDataSeriesSeq.getLength());
+//
+// for (sal_Int32 i = 0; i < aDataSeriesSeq.getLength(); ++i)
+// {
+// uno::Reference<chart2::data::XDataSource> xDSrc(aDataSeriesSeq[i], uno::UNO_QUERY);
+// CPPUNIT_ASSERT(xDSrc.is());
+// uno::Sequence<Reference<chart2::data::XLabeledDataSequence> > aDataSeqs = xDSrc->getDataSequences();
+// for (sal_Int32 j = 0; j < aDataSeqs.getLength(); ++j)
+// {
+// Reference<chart2::data::XDataSequence> xValues = aDataSeqs[j]->getValues();
+// CPPUNIT_ASSERT(xValues.is());
+// Reference<beans::XPropertySet> xPropSet(xValues, uno::UNO_QUERY);
+// if (!xPropSet.is())
+// continue;
+//
+// OUString aRoleName;
+// xPropSet->getPropertyValue("Role") >>= aRoleName;
+// if (aRoleName == aLabelRole)
+// {
+// // TODO : Check the data series labels.
+// }
+// }
+// }
+//
+// CPPUNIT_ASSERT(false);
+// }
void Chart2ExportTest::testErrorBarDataRangeODS()
{