Kaydet (Commit) 4cdce63d authored tarafından Miklos Vajna's avatar Miklos Vajna

testCropPixel: relax requirements a bit for OS X

Change-Id: I5b72e39371671718ac31bbd92a4649a66a1241cf
üst 2b6619c5
...@@ -440,9 +440,11 @@ DECLARE_OOXMLEXPORT_TEST(testCropPixel, "crop-pixel.docx") ...@@ -440,9 +440,11 @@ DECLARE_OOXMLEXPORT_TEST(testCropPixel, "crop-pixel.docx")
// If map mode of the graphic is in pixels, then we used to handle original // If map mode of the graphic is in pixels, then we used to handle original
// size of the graphic as mm100, but it was in pixels. // size of the graphic as mm100, but it was in pixels.
if (xmlDocPtr pXmlDoc = parseExport("word/document.xml")) if (xmlDocPtr pXmlDoc = parseExport("word/document.xml"))
// This is 17667 in the original document (i.e. should be < 20000), but {
// was 504666, so the image become invisible. // This is 17667 in the original document, was 504666 (so the image
assertXPath(pXmlDoc, "//a:srcRect", "l", "19072"); // become invisible), now is around 19072.
CPPUNIT_ASSERT(getXPath(pXmlDoc, "//a:srcRect", "l").toInt32() < 20000);
}
} }
CPPUNIT_PLUGIN_IMPLEMENT(); CPPUNIT_PLUGIN_IMPLEMENT();
......
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