Kaydet (Commit) 438d3eef authored tarafından Caolán McNamara's avatar Caolán McNamara

cmcfixes73: #i110069# remove platform-dependent test

üst 6f9dd672
...@@ -465,32 +465,6 @@ public: ...@@ -465,32 +465,6 @@ public:
CPPUNIT_ASSERT_MESSAGE("exporting complex polygon to SVG-D (round-trip)", CPPUNIT_ASSERT_MESSAGE("exporting complex polygon to SVG-D (round-trip)",
!aExport.compareToAscii(sExportString2)); !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( const B2DPolygon aRect(
tools::createPolygonFromRect( B2DRange(0.0,0.0,4000.0,4000.0) )); tools::createPolygonFromRect( B2DRange(0.0,0.0,4000.0,4000.0) ));
aExport = tools::exportToSvgD( B2DPolyPolygon(aRect), false, false); aExport = tools::exportToSvgD( B2DPolyPolygon(aRect), false, false);
......
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