[Libreoffice-commits] core.git: svgio/qa
Joren De Cuyper
jorendc at libreoffice.org
Tue Jul 29 14:25:57 PDT 2014
svgio/qa/cppunit/SvgImportTest.cxx | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit d971c66bac623f2c5a1c777bb198d29ebd33dbec
Author: Joren De Cuyper <jorendc at libreoffice.org>
Date: Tue Jul 29 00:02:10 2014 +0200
SVG test that sequences are equal
Change-Id: I58178ac9942dc52083dd44565669769761652ada
Reviewed-on: https://gerrit.libreoffice.org/10601
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
Tested-by: Tomaž Vajngerl <quikee at gmail.com>
diff --git a/svgio/qa/cppunit/SvgImportTest.cxx b/svgio/qa/cppunit/SvgImportTest.cxx
index a5e5e17..5be8dc0 100644
--- a/svgio/qa/cppunit/SvgImportTest.cxx
+++ b/svgio/qa/cppunit/SvgImportTest.cxx
@@ -18,6 +18,8 @@
#include <com/sun/star/graphic/Primitive2DTools.hpp>
#include <com/sun/star/graphic/XPrimitive2D.hpp>
+#include <drawinglayer/primitive2d/baseprimitive2d.hxx>
+
#include <boost/scoped_array.hpp>
namespace
@@ -26,6 +28,8 @@ namespace
using namespace css::uno;
using namespace css::io;
using namespace css::graphic;
+using namespace drawinglayer;
+using namespace drawinglayer::primitive2d;
class Test : public test::BootstrapFixture
{
@@ -85,8 +89,8 @@ void Test::testStyles()
Primitive2DSequence maSequenceRectWithStylesByGroup = parseSvg("/svgio/qa/cppunit/data/RectWithStylesByGroup.svg");
CPPUNIT_ASSERT_EQUAL(1, (int) maSequenceRectWithStylesByGroup.getLength());
- // TODO: Test if the 3 sequences are equal..
- //const Primitive2DReference xReference(maSequenceRect[0]);
+ CPPUNIT_ASSERT_EQUAL(true, (bool) arePrimitive2DSequencesEqual(maSequenceRect, maSequenceRectWithStyle));
+ CPPUNIT_ASSERT_EQUAL(true, (bool) arePrimitive2DSequencesEqual(maSequenceRect, maSequenceRectWithParentStyle));
}
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
More information about the Libreoffice-commits
mailing list