diff options
Diffstat (limited to 'svgio')
-rw-r--r-- | svgio/qa/cppunit/SvgImportTest.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/svgio/qa/cppunit/SvgImportTest.cxx b/svgio/qa/cppunit/SvgImportTest.cxx index a5e5e17835d9..5be8dc042875 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); |