diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-06-24 10:56:00 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-06-24 10:56:00 +0000 |
commit | 8dccc2b4de260e271763e6dc15bd4dbad73f594d (patch) | |
tree | bdd2e2dfde45b5bf07076a6f04fd7882afc14b00 /basegfx/test/basegfx2d.cxx | |
parent | 3470de989b91462e61c74baa73c62ae414e22b08 (diff) |
INTEGRATION: CWS canvas05 (1.12.2); FILE MERGED
2008/06/03 15:54:00 thb 1.12.2.1: Upstreaming elliptical arc import for svg:d parser
Diffstat (limited to 'basegfx/test/basegfx2d.cxx')
-rw-r--r-- | basegfx/test/basegfx2d.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/basegfx/test/basegfx2d.cxx b/basegfx/test/basegfx2d.cxx index 91505db024cd..782f41d68b4c 100644 --- a/basegfx/test/basegfx2d.cxx +++ b/basegfx/test/basegfx2d.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: basegfx2d.cxx,v $ - * $Revision: 1.12 $ + * $Revision: 1.13 $ * * This file is part of OpenOffice.org. * @@ -484,6 +484,14 @@ public: CPPUNIT_ASSERT_MESSAGE("exporting to circle does not produce the expected number of coordinates", nCount==18); + + const B2DPolygon aRect( + tools::createPolygonFromRect( B2DRange(0.0,0.0,4000.0,4000.0) )); + aExport = tools::exportToSvgD( B2DPolyPolygon(aRect), false, false); + + const char* sExportStringRect = "M0 0H4000V4000H0Z"; + CPPUNIT_ASSERT_MESSAGE("exporting to rectangle svg-d string", + !aExport.compareToAscii(sExportStringRect)); } // Change the following lines only, if you add, remove or rename |