From 762c52346f8e6a6b91fe1c758494b2c152361e73 Mon Sep 17 00:00:00 2001 From: Armin Le Grand Date: Thu, 22 Jun 2017 18:10:16 +0200 Subject: emfplus: finetuning, UnitTest, not active by default Change-Id: Ie085ad2610a306c7f9c44551114041d0950d1af5 --- emfio/qa/cppunit/EmfImportTest.cxx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'emfio/qa') diff --git a/emfio/qa/cppunit/EmfImportTest.cxx b/emfio/qa/cppunit/EmfImportTest.cxx index f315fc8937d0..ccef93ce673f 100644 --- a/emfio/qa/cppunit/EmfImportTest.cxx +++ b/emfio/qa/cppunit/EmfImportTest.cxx @@ -63,8 +63,9 @@ Primitive2DSequence Test::parseEmf(const char* aSource) Sequence aData(pBuffer.get(), nSize + 1); Reference aInputStream(new comphelper::SequenceInputStream(aData)); + css::uno::Sequence< css::beans::PropertyValue > aEmptyValues; - return xEmfParser->getDecomposition(aInputStream, aPath); + return xEmfParser->getDecomposition(aInputStream, aPath, aEmptyValues); } void Test::checkRectPrimitive(Primitive2DSequence& rPrimitive) @@ -74,16 +75,10 @@ void Test::checkRectPrimitive(Primitive2DSequence& rPrimitive) CPPUNIT_ASSERT (pDocument); - // emfio: add examples + // emfio: add examples (later) // assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor", "color", "#00cc00"); // rect background color // assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor", "height", "100"); // rect background height // assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor", "width", "100"); // rect background width - // assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor", "minx", "10"); - // assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor", "miny", "10"); - // assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor", "maxx", "110"); - // assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor", "maxy", "110"); - // assertXPath(pDocument, "/primitive2D/transform/polypolygonstroke/line", "color", "#ff0000"); // rect stroke color - // assertXPath(pDocument, "/primitive2D/transform/polypolygonstroke/line", "width", "3"); // rect stroke width } void Test::testWorking() -- cgit