summaryrefslogtreecommitdiff
path: root/sc/qa/extras
diff options
context:
space:
mode:
authorRafał Dobrakowski <dobrakowskirafal@gmail.com>2024-02-15 21:07:59 +0100
committerTomaž Vajngerl <quikee@gmail.com>2024-03-14 02:33:03 +0100
commitc8b8a2c2cb34a1ae0b0aeee0564b39260258f184 (patch)
tree2bda2b8730337c9c96c4827942728fac5770bf69 /sc/qa/extras
parentd5f25d9c0026ec06a0b46e1560e26adba2725290 (diff)
tdf#141908 - CppUnittests: replace usage of sal_Int32 with colors
Conversion of hex/dec colour notation (example entry Color( 255, 255, 255), Color(0xFFFFFF) - COL_WHITE) For the other available colour definitions. Change-Id: I9eed0cd64adcbc8d25e1c22143a000906a457586 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163729 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sc/qa/extras')
-rw-r--r--sc/qa/extras/macros-test.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/extras/macros-test.cxx b/sc/qa/extras/macros-test.cxx
index 61c7fdad12a5..765c2f1cb715 100644
--- a/sc/qa/extras/macros-test.cxx
+++ b/sc/qa/extras/macros-test.cxx
@@ -724,7 +724,7 @@ CPPUNIT_TEST_FIXTURE(ScMacrosTest, testTdf107572)
const SvxBrushItem& rBackground = static_cast<const SvxBrushItem&>(rItem);
const Color& rColor = rBackground.GetColor();
- CPPUNIT_ASSERT_EQUAL(Color(0x0, 0x0, 0x80), rColor);
+ CPPUNIT_ASSERT_EQUAL(COL_BLUE, rColor);
}
for (SCROW i = 1; i < 13; ++i)
@@ -741,7 +741,7 @@ CPPUNIT_TEST_FIXTURE(ScMacrosTest, testTdf107572)
const SvxBrushItem& rBackground2 = static_cast<const SvxBrushItem&>(rItem2);
const Color& rColor2 = rBackground2.GetColor();
- CPPUNIT_ASSERT_EQUAL(Color(0xcc, 0xcc, 0xcc), rColor2);
+ CPPUNIT_ASSERT_EQUAL(COL_GRAY3, rColor2);
}
}