sw/qa/extras/htmlexport/htmlexport.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 1637f4449c10ec1f8869498ba0cafc61a8a77bbf
Author:     Henrik Palomäki <[email protected]>
AuthorDate: Fri Oct 29 12:42:53 2021 +0300
Commit:     Xisco Fauli <[email protected]>
CommitDate: Tue Nov 2 16:57:19 2021 +0100

    tdf#141908 replace usage of sal_Int32 with colors in htmlexport
    
    Change-Id: I0403ccdb875f5372a13ebdc0fdf0f4ed396af773
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124436
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/sw/qa/extras/htmlexport/htmlexport.cxx 
b/sw/qa/extras/htmlexport/htmlexport.cxx
index d16c60735ace..641a1e1560c8 100644
--- a/sw/qa/extras/htmlexport/htmlexport.cxx
+++ b/sw/qa/extras/htmlexport/htmlexport.cxx
@@ -359,7 +359,7 @@ DECLARE_HTMLEXPORT_ROUNDTRIP_TEST(testFdo86857, 
"fdo86857.html")
     // problem was that background color on page style was not exported
     uno::Reference<container::XNameAccess> 
xPageStyles(getStyles("PageStyles"));
     uno::Reference<beans::XPropertySet> xStyle(xPageStyles->getByName("HTML"), 
uno::UNO_QUERY);
-    CPPUNIT_ASSERT_EQUAL(sal_Int32(0xff0000), getProperty<sal_Int32>(xStyle, 
"BackColor"));
+    CPPUNIT_ASSERT_EQUAL(COL_LIGHTRED, getProperty<Color>(xStyle, 
"BackColor"));
     // check that table background color works, which still uses RES_BACKGROUND
     uno::Reference<text::XTextTablesSupplier> xTablesSupplier(mxComponent, 
uno::UNO_QUERY);
     uno::Reference<container::XIndexAccess> 
xTables(xTablesSupplier->getTextTables(),
@@ -367,7 +367,7 @@ DECLARE_HTMLEXPORT_ROUNDTRIP_TEST(testFdo86857, 
"fdo86857.html")
     CPPUNIT_ASSERT_EQUAL(sal_Int32(1), xTables->getCount());
     uno::Reference<text::XTextTable> xTable(xTables->getByIndex(0), 
uno::UNO_QUERY);
     uno::Reference<text::XTextRange> xCell(xTable->getCellByName("A1"), 
uno::UNO_QUERY);
-    CPPUNIT_ASSERT_EQUAL(sal_Int32(0x66ffff), getProperty<sal_Int32>(xCell, 
"BackColor"));
+    CPPUNIT_ASSERT_EQUAL(Color(0x66ffff), getProperty<Color>(xCell, 
"BackColor"));
 }
 
 DECLARE_HTMLEXPORT_ROUNDTRIP_TEST(testCharacterBorder, "charborder.odt")

Reply via email to