Kaydet (Commit) df6d3e9d authored tarafından Katarina Behrens's avatar Katarina Behrens

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
üst a8c1ed47
...@@ -2685,7 +2685,8 @@ void ScExportTest::testSheetRunParagraphProperty() ...@@ -2685,7 +2685,8 @@ void ScExportTest::testSheetRunParagraphProperty()
xmlDocPtr pDoc = XPathHelper::parseExport(&(*xDocSh), m_xSFactory, "xl/sharedStrings.xml", XLSX); xmlDocPtr pDoc = XPathHelper::parseExport(&(*xDocSh), m_xSFactory, "xl/sharedStrings.xml", XLSX);
CPPUNIT_ASSERT(pDoc); 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(); xDocSh->DoClose();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment