From af46264bccbc16bf1edf9c5cbe944a4b883a1353 Mon Sep 17 00:00:00 2001 From: Xisco FaulĂ­ Date: Mon, 7 Mar 2016 15:22:59 +0000 Subject: Revert "tdf#97538: SVGIO: Add unittest" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It fails in Tinderbox Linux-rpm_deb-x86@71-TDF This reverts commit 3c465c259c617e30b01c5ea25b5203a605cd4269. Change-Id: I20fc69dd785354cc6567b73251ee9161a811bdf0 Reviewed-on: https://gerrit.libreoffice.org/22987 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ­ --- svgio/qa/cppunit/SvgImportTest.cxx | 36 ------------------------------------ svgio/qa/cppunit/data/tdf97538.svg | 10 ---------- 2 files changed, 46 deletions(-) delete mode 100644 svgio/qa/cppunit/data/tdf97538.svg (limited to 'svgio/qa/cppunit') diff --git a/svgio/qa/cppunit/SvgImportTest.cxx b/svgio/qa/cppunit/SvgImportTest.cxx index f560816a1830..3b0c7729ea38 100644 --- a/svgio/qa/cppunit/SvgImportTest.cxx +++ b/svgio/qa/cppunit/SvgImportTest.cxx @@ -53,7 +53,6 @@ class Test : public test::BootstrapFixture, public XmlTestTools void testRGBColor(); void testRGBAColor(); void testTdf97936(); - void testTdf97538(); Primitive2DSequence parseSvg(const char* aSource); @@ -77,7 +76,6 @@ public: CPPUNIT_TEST(testRGBColor); CPPUNIT_TEST(testRGBAColor); CPPUNIT_TEST(testTdf97936); - CPPUNIT_TEST(testTdf97538); CPPUNIT_TEST_SUITE_END(); }; @@ -405,40 +403,6 @@ void Test::testTdf97936() assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[2]", "maxx", "60"); assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[2]", "maxy", "100"); } - -void Test::testTdf97538() -{ - // check that both rectangles are rendered in the viewBox - Primitive2DSequence aSequenceTdf97538 = parseSvg("/svgio/qa/cppunit/data/tdf97538.svg"); - CPPUNIT_ASSERT_EQUAL(1, (int)aSequenceTdf97538.getLength()); - - Primitive2dXmlDump dumper; - xmlDocPtr pDocument = dumper.dumpAndParse(comphelper::sequenceToContainer(aSequenceTdf97538)); - - CPPUNIT_ASSERT (pDocument); - - assertXPath(pDocument, "/primitive2D/transform/transform[1]/polypolygoncolor", "color", "#ff0000"); - assertXPath(pDocument, "/primitive2D/transform/transform[1]/polypolygoncolor", "height", "200"); - assertXPath(pDocument, "/primitive2D/transform/transform[1]/polypolygoncolor", "width", "199"); - assertXPath(pDocument, "/primitive2D/transform/transform[1]/polypolygoncolor", "minx", "145"); - assertXPath(pDocument, "/primitive2D/transform/transform[1]/polypolygoncolor", "miny", "-24"); - assertXPath(pDocument, "/primitive2D/transform/transform[1]/polypolygoncolor", "maxx", "345"); - assertXPath(pDocument, "/primitive2D/transform/transform[1]/polypolygoncolor", "maxy", "175"); - assertXPath(pDocument, "/primitive2D/transform/transform[2]/polypolygoncolor", "color", "#0000ff"); - assertXPath(pDocument, "/primitive2D/transform/transform[2]/polypolygoncolor", "height", "200"); - assertXPath(pDocument, "/primitive2D/transform/transform[2]/polypolygoncolor", "width", "199"); - assertXPath(pDocument, "/primitive2D/transform/transform[2]/polypolygoncolor", "minx", "145"); - assertXPath(pDocument, "/primitive2D/transform/transform[2]/polypolygoncolor", "miny", "-24"); - assertXPath(pDocument, "/primitive2D/transform/transform[2]/polypolygoncolor", "maxx", "345"); - assertXPath(pDocument, "/primitive2D/transform/transform[2]/polypolygoncolor", "maxy", "175"); - assertXPath(pDocument, "/primitive2D/transform/transform[3]/polypolygoncolor", "color", "#008000"); - assertXPath(pDocument, "/primitive2D/transform/transform[3]/polypolygoncolor", "height", "200"); - assertXPath(pDocument, "/primitive2D/transform/transform[3]/polypolygoncolor", "width", "199"); - assertXPath(pDocument, "/primitive2D/transform/transform[3]/polypolygoncolor", "minx", "145"); - assertXPath(pDocument, "/primitive2D/transform/transform[3]/polypolygoncolor", "miny", "-24"); - assertXPath(pDocument, "/primitive2D/transform/transform[3]/polypolygoncolor", "maxx", "345"); - assertXPath(pDocument, "/primitive2D/transform/transform[3]/polypolygoncolor", "maxy", "175"); -} CPPUNIT_TEST_SUITE_REGISTRATION(Test); } diff --git a/svgio/qa/cppunit/data/tdf97538.svg b/svgio/qa/cppunit/data/tdf97538.svg deleted file mode 100644 index ef2936e5d62b..000000000000 --- a/svgio/qa/cppunit/data/tdf97538.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - -- cgit