[Libreoffice-commits] core.git: sw/qa
Miklos Vajna
vmiklos at collabora.co.uk
Tue Mar 4 01:18:11 PST 2014
sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit f3a79ea8c3a2949845a14f323b9399a74ef3f607
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Tue Mar 4 10:12:20 2014 +0100
CppunitTest_sw_ooxmlsdrexport: make this failure a bit more readable
Change-Id: Ia71f5ea712ad16d6eef3af1136613d38cd27b581
diff --git a/sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx
index a1c378b..d3e6f6b 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx
@@ -201,7 +201,8 @@ DECLARE_OOXMLEXPORT_TEST(testDmlRectangleRelsize, "dml-rectangle-relsize.docx")
{
// This was around 19560, as we did not read wp14:pctHeight for
// drawinglayer shapes and the fallback data was invalid.
- CPPUNIT_ASSERT(getShape(1)->getSize().Height >= 20992);
+ OString aMessage("Height is only " + OString::number(getShape(1)->getSize().Height));
+ CPPUNIT_ASSERT_MESSAGE(aMessage.getStr(), getShape(1)->getSize().Height >= 20992);
// This was around 0: relative size of 0% was imported as 0, not "fall back to absolute size".
CPPUNIT_ASSERT(getShape(2)->getSize().Height > 300);
More information about the Libreoffice-commits
mailing list