chart2/qa/extras/chart2export.cxx |   82 +++++++++++++++++++-------------------
 1 file changed, 41 insertions(+), 41 deletions(-)

New commits:
commit 967157a4bab4e73036bd1354315e8f3a3e084145
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Wed Jun 11 07:58:24 2014 +0200

    loplugin:unreffun
    
    Change-Id: I3d5ddbca7760a32231ef7fee19b45bca83667ca7

diff --git a/chart2/qa/extras/chart2export.cxx 
b/chart2/qa/extras/chart2export.cxx
index 8ad51b6..6d83a8a 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()
 {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to