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

Katarina Behrens Katarina.Behrens at cib.de
Mon Nov 9 06:57:16 PST 2015


 sc/qa/unit/subsequent_export-test.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit df6d3e9d91c25bd1ef7c7cba0f1af63895890411
Author: Katarina Behrens <Katarina.Behrens at cib.de>
Date:   Mon Nov 9 15:51:50 2015 +0100

    Related tdf#92296, tdf#90812: Make this test more strict
    
    i.e. not only make sure that rPr is there, but also test the text
    chunk has the right font colour ( it went off-by-one in regression
    caused by the fix of tdf#90812 )
    
    Change-Id: I3788a845393686ed621743e117b7eb439e38e0b3

diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx
index 24ebd59..3fe86d9 100644
--- a/sc/qa/unit/subsequent_export-test.cxx
+++ b/sc/qa/unit/subsequent_export-test.cxx
@@ -2685,7 +2685,8 @@ void ScExportTest::testSheetRunParagraphProperty()
     xmlDocPtr pDoc = XPathHelper::parseExport(&(*xDocSh), m_xSFactory, "xl/sharedStrings.xml", XLSX);
     CPPUNIT_ASSERT(pDoc);
 
-    assertXPath(pDoc, "/x:sst/x:si/x:r[1]/x:rPr[1]", 1);
+    OUString aColor = getXPath(pDoc, "/x:sst/x:si/x:r[1]/x:rPr[1]/x:color", "rgb");
+    CPPUNIT_ASSERT_EQUAL(OUString("FFFF0000"), aColor);
 
     xDocSh->DoClose();
 }


More information about the Libreoffice-commits mailing list