From df6d3e9d91c25bd1ef7c7cba0f1af63895890411 Mon Sep 17 00:00:00 2001 From: Katarina Behrens Date: Mon, 9 Nov 2015 15:51:50 +0100 Subject: 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 --- sc/qa/unit/subsequent_export-test.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- cgit