[Libreoffice-commits] core.git: sw/qa

Norbert Thiebaud nthiebaud at gmail.com
Sat Jul 5 02:38:09 PDT 2014


 sw/qa/extras/rtfimport/rtfimport.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit dd1a82e5beac21fc5fa455bffa2c8e48f9adfe3f
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Sat Jul 5 11:32:06 2014 +0200

    rtfimport test: add message with the value found on top of expected
    
    Change-Id: Ic17d66bd2b9f4cc4124b13ef7c962649d83ee60c

diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx
index 05d618b..ea23931 100644
--- a/sw/qa/extras/rtfimport/rtfimport.cxx
+++ b/sw/qa/extras/rtfimport/rtfimport.cxx
@@ -898,8 +898,11 @@ DECLARE_RTFIMPORT_TEST(testFdo52989, "fdo52989.rtf")
 {
     // Same as n#192129, but for JPEG files.
     uno::Reference<drawing::XShape> xShape(getShape(1), uno::UNO_QUERY);
+    OString aMessage("xShape->getSize().Width() = ");
+    aMessage += OString::number(xShape->getSize().Width);
+
     // This was 2, should be 423 (or 369?).
-    CPPUNIT_ASSERT(xShape->getSize().Width >= 369);
+    CPPUNIT_ASSERT_MESSAGE(aMessage.getStr(), xShape->getSize().Width >= 369);
 }
 
 DECLARE_RTFIMPORT_TEST(testFdo48442, "fdo48442.rtf")


More information about the Libreoffice-commits mailing list