summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2015-11-09 15:51:50 +0100
committerKatarina Behrens <Katarina.Behrens@cib.de>2015-11-09 15:56:47 +0100
commitdf6d3e9d91c25bd1ef7c7cba0f1af63895890411 (patch)
tree32cf638865797b89ad53806691aaf830892a4bea /sc
parenta8c1ed47fb9dc2e878ad5f2cf26b967cf8e09d34 (diff)
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
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/subsequent_export-test.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx
index 24ebd599a45c..3fe86d995ca0 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();
}