summaryrefslogtreecommitdiff
path: root/sw/qa/extras/ooxmlexport
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-10-09 13:36:44 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-10-09 13:38:18 +0200
commit4cdce63daf162709c3eff0f9c6c90ecc32109c21 (patch)
tree0f7732555e95567be542298eb4c150beaba6b197 /sw/qa/extras/ooxmlexport
parent2b6619c597a791775e2d41a68f7e85ef75d1aaa2 (diff)
testCropPixel: relax requirements a bit for OS X
Change-Id: I5b72e39371671718ac31bbd92a4649a66a1241cf
Diffstat (limited to 'sw/qa/extras/ooxmlexport')
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index 3c0a59200207..cf2c5c0a4f58 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -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
// size of the graphic as mm100, but it was in pixels.
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.
- assertXPath(pXmlDoc, "//a:srcRect", "l", "19072");
+ {
+ // This is 17667 in the original document, was 504666 (so the image
+ // become invisible), now is around 19072.
+ CPPUNIT_ASSERT(getXPath(pXmlDoc, "//a:srcRect", "l").toInt32() < 20000);
+ }
}
CPPUNIT_PLUGIN_IMPLEMENT();