summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2023-03-15 17:32:26 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2023-03-16 07:21:08 +0000
commitd2867ac604937abf88c553341fcdd7e7abb7698c (patch)
tree82fe9c210638b3e026d930557bfac67c60f59d42 /chart2
parentc379f1b978c3ad4578c130675c1e0a82c70823c0 (diff)
XmlTestTools: factor out common code
Change-Id: Ie212c86c6c0ac20878be88d88ade5eb1c989942d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148935 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/qa/extras/chart2export.cxx8
-rw-r--r--chart2/qa/extras/chart2export2.cxx8
-rw-r--r--chart2/qa/extras/chart2export3.cxx8
-rw-r--r--chart2/qa/extras/chart2geometry.cxx9
4 files changed, 0 insertions, 33 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx
index f89c391124bb..6e9a18efeed5 100644
--- a/chart2/qa/extras/chart2export.cxx
+++ b/chart2/qa/extras/chart2export.cxx
@@ -24,18 +24,10 @@ using beans::XPropertySet;
class Chart2ExportTest : public ChartTest
{
-protected:
-
- virtual void registerNamespaces(xmlXPathContextPtr& pXmlXPathCtx) override;
public:
Chart2ExportTest() : ChartTest("/chart2/qa/extras/data/") {}
};
-void Chart2ExportTest::registerNamespaces(xmlXPathContextPtr& pXmlXPathCtx)
-{
- XmlTestTools::registerOOXMLNamespaces(pXmlXPathCtx);
-}
-
namespace {
void testErrorBar( Reference< XPropertySet > const & xErrorBar )
diff --git a/chart2/qa/extras/chart2export2.cxx b/chart2/qa/extras/chart2export2.cxx
index 06e1333f5164..c565ad03c538 100644
--- a/chart2/qa/extras/chart2export2.cxx
+++ b/chart2/qa/extras/chart2export2.cxx
@@ -22,9 +22,6 @@ using beans::XPropertySet;
class Chart2ExportTest2 : public ChartTest
{
-protected:
- virtual void registerNamespaces(xmlXPathContextPtr& pXmlXPathCtx) override;
-
public:
Chart2ExportTest2()
: ChartTest("/chart2/qa/extras/data/")
@@ -32,11 +29,6 @@ public:
}
};
-void Chart2ExportTest2::registerNamespaces(xmlXPathContextPtr& pXmlXPathCtx)
-{
- XmlTestTools::registerOOXMLNamespaces(pXmlXPathCtx);
-}
-
CPPUNIT_TEST_FIXTURE(Chart2ExportTest2, testSetSeriesToSecondaryAxisXLSX)
{
loadFromURL(u"xlsx/add_series_secondary_axis.xlsx");
diff --git a/chart2/qa/extras/chart2export3.cxx b/chart2/qa/extras/chart2export3.cxx
index 05dbdc48c41b..dfb7f330d582 100644
--- a/chart2/qa/extras/chart2export3.cxx
+++ b/chart2/qa/extras/chart2export3.cxx
@@ -24,18 +24,10 @@ using beans::XPropertySet;
class Chart2ExportTest3 : public ChartTest
{
-protected:
-
- virtual void registerNamespaces(xmlXPathContextPtr& pXmlXPathCtx) override;
public:
Chart2ExportTest3() : ChartTest("/chart2/qa/extras/data/") {}
};
-void Chart2ExportTest3::registerNamespaces(xmlXPathContextPtr& pXmlXPathCtx)
-{
- XmlTestTools::registerOOXMLNamespaces(pXmlXPathCtx);
-}
-
CPPUNIT_TEST_FIXTURE(Chart2ExportTest3, testTdf108107)
{
loadFromURL(u"xlsx/tdf108107.xlsx");
diff --git a/chart2/qa/extras/chart2geometry.cxx b/chart2/qa/extras/chart2geometry.cxx
index 4dcdfa0f3125..9a69b81e593a 100644
--- a/chart2/qa/extras/chart2geometry.cxx
+++ b/chart2/qa/extras/chart2geometry.cxx
@@ -25,9 +25,6 @@ using beans::XPropertySet;
class Chart2GeometryTest : public ChartTest
{
-protected:
- virtual void registerNamespaces(xmlXPathContextPtr& pXmlXPathCtx) override;
-
public:
Chart2GeometryTest()
: ChartTest("/chart2/qa/extras/data/")
@@ -68,12 +65,6 @@ public:
CPPUNIT_TEST_SUITE_END();
};
-void Chart2GeometryTest::registerNamespaces(xmlXPathContextPtr& pXmlXPathCtx)
-{
- XmlTestTools::registerOOXMLNamespaces(pXmlXPathCtx);
- XmlTestTools::registerODFNamespaces(pXmlXPathCtx);
-}
-
static OString OU2O(std::u16string_view sOUSource)
{
return rtl::OUStringToOString(sOUSource, RTL_TEXTENCODING_UTF8);