Kaydet (Commit) d971c66b authored tarafından Joren De Cuyper's avatar Joren De Cuyper Kaydeden (comit) Tomaž Vajngerl

SVG test that sequences are equal

Change-Id: I58178ac9942dc52083dd44565669769761652ada
Reviewed-on: https://gerrit.libreoffice.org/10601Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
Tested-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
üst 1fcc3050
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment