diff options
author | Joren De Cuyper <jorendc@libreoffice.org> | 2014-07-29 00:02:10 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2014-07-29 21:25:27 +0000 |
commit | d971c66bac623f2c5a1c777bb198d29ebd33dbec (patch) | |
tree | 74eb9b7fbd5f54e588dc11e0efe851c16038b522 /svgio | |
parent | 1fcc30503549b47046c84333af542ed739f685ba (diff) |
SVG test that sequences are equal
Change-Id: I58178ac9942dc52083dd44565669769761652ada
Reviewed-on: https://gerrit.libreoffice.org/10601
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
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); |