diff options
author | Nalini Prasad Dash <nnnalinidash@protonmail.com> | 2022-10-23 22:18:40 +0530 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2022-11-07 09:58:04 +0100 |
commit | aa5e2b24ebca3b36becf77e466eb1702e1f97301 (patch) | |
tree | 2cb3b67cf71eedad1d69a92535e66a9c9a51fe0c /oox | |
parent | 503195ad4df320da568fe089b4d0de2f761be660 (diff) |
tdf#141908 - CppUnittests: replace usage of sal_Int32 with colors
Change-Id: Icdf2a5e7c0bd738f2cffbc0b7e99b1bd90a6dcce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141685
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/CppunitTest_oox_drawingml.mk | 1 | ||||
-rw-r--r-- | oox/qa/unit/drawingml.cxx | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/oox/CppunitTest_oox_drawingml.mk b/oox/CppunitTest_oox_drawingml.mk index 4523acc4aa3d..1e47063cc3b6 100644 --- a/oox/CppunitTest_oox_drawingml.mk +++ b/oox/CppunitTest_oox_drawingml.mk @@ -26,6 +26,7 @@ $(eval $(call gb_CppunitTest_use_libraries,oox_drawingml, \ sal \ subsequenttest \ test \ + tl \ unotest \ utl \ )) diff --git a/oox/qa/unit/drawingml.cxx b/oox/qa/unit/drawingml.cxx index 6150e4499eed..5c0b17e192f6 100644 --- a/oox/qa/unit/drawingml.cxx +++ b/oox/qa/unit/drawingml.cxx @@ -183,11 +183,11 @@ CPPUNIT_TEST_FIXTURE(OoxDrawingmlTest, testGradientMultiStepTransparency) xShapeProps->getPropertyValue("FillTransparenceGradient") >>= aTransparence; // Without the accompanying fix in place, this test would have failed with: - // - Expected: 16777215 (0xffffff) + // - Expected: 16777215 (COL_WHITE) // - Actual : 3487029 (0x353535) // i.e. the end transparency was not 100%, but was 21%, leading to an unexpected visible line on // the right of this shape. - CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(0xffffff), aTransparence.EndColor); + CPPUNIT_ASSERT_EQUAL(COL_WHITE, Color(ColorTransparency, aTransparence.EndColor)); } CPPUNIT_TEST_FIXTURE(OoxDrawingmlTest, testShapeTextAlignment) |