summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorCaolán McNamara <cmc@openoffice.org>2010-03-18 17:02:39 +0000
committerCaolán McNamara <cmc@openoffice.org>2010-03-18 17:02:39 +0000
commit438d3eef38d0b13ee54f5ab2f0365893dbdff68a (patch)
tree7c2ac450f533dea763c23a2541c07f9024a00862 /basegfx
parent6f9dd6728ba68934d678a6caf66edcdf2900537a (diff)
cmcfixes73: #i110069# remove platform-dependent test
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/test/basegfx2d.cxx26
1 files changed, 0 insertions, 26 deletions
diff --git a/basegfx/test/basegfx2d.cxx b/basegfx/test/basegfx2d.cxx
index bbf5045b5832..7258563fe52d 100644
--- a/basegfx/test/basegfx2d.cxx
+++ b/basegfx/test/basegfx2d.cxx
@@ -465,32 +465,6 @@ public:
CPPUNIT_ASSERT_MESSAGE("exporting complex polygon to SVG-D (round-trip)",
!aExport.compareToAscii(sExportString2));
- const B2DPolygon aCircle(
- tools::createPolygonFromEllipse( B2DPoint(4000,4000),
- 1000.0, 2000.0 ));
- aExport = tools::exportToSvgD( B2DPolyPolygon(aCircle), false, false);
-
- // count number of spaces, in lieu of a better way - no real
- // point in comparing with a gold standard, as fractional
- // parts of the coordinates will differ between systems.
- sal_Int32 nIndex=0, nCount=0;
- do
- {
- rtl::OUString aToken = aExport.getToken( 0, ' ', nIndex );
- ++nCount;
- }
- while ( nIndex >= 0 );
-
- // Adapted number of spaces to 50, 67 and 61 because of the new circle
- // construction methods which produce more points and thus more spaces,
- // too. Use both since depending on float precision and the
- // getContinuity() implemetation using fTools::equal, linux and mac
- // produce more 'C' than 'S' statements, while WIN32 uses more 'S'
- // statements (as it should be for circles)
-
- // 61 elements for S390x, and IA64
- CPPUNIT_ASSERT_MESSAGE("exporting to circle does not produce the expected number of coordinates", nCount==67 || nCount==50 || nCount == 61);
-
const B2DPolygon aRect(
tools::createPolygonFromRect( B2DRange(0.0,0.0,4000.0,4000.0) ));
aExport = tools::exportToSvgD( B2DPolyPolygon(aRect), false, false);