diff options
author | Rafał Dobrakowski <dobrakowskirafal@gmail.com> | 2024-02-15 21:07:59 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2024-03-14 02:33:03 +0100 |
commit | c8b8a2c2cb34a1ae0b0aeee0564b39260258f184 (patch) | |
tree | 2bda2b8730337c9c96c4827942728fac5770bf69 /sw/qa/extras/odfimport | |
parent | d5f25d9c0026ec06a0b46e1560e26adba2725290 (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 'sw/qa/extras/odfimport')
-rw-r--r-- | sw/qa/extras/odfimport/odfimport.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/extras/odfimport/odfimport.cxx b/sw/qa/extras/odfimport/odfimport.cxx index 355f4611686b..82d73ab5b8dc 100644 --- a/sw/qa/extras/odfimport/odfimport.cxx +++ b/sw/qa/extras/odfimport/odfimport.cxx @@ -647,7 +647,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFdo75872_aoo40) createSwDoc("fdo75872_aoo40.odt"); // graphics default style: line color and fill color changed uno::Reference<drawing::XShape> xShape = getShape(1); - CPPUNIT_ASSERT_EQUAL(Color(0x808080), + CPPUNIT_ASSERT_EQUAL(COL_GRAY, getProperty<Color>(xShape, "LineColor")); CPPUNIT_ASSERT_EQUAL(Color(0xcfe7f5), getProperty<Color>(xShape, "FillColor")); @@ -945,7 +945,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf96113) { createSwDoc("tdf96113.odt"); // Background of the formula frame was white (0xffffff), not green. - CPPUNIT_ASSERT_EQUAL(Color(0x00ff00), getProperty<Color>(getShape(1), "BackColor")); + CPPUNIT_ASSERT_EQUAL(COL_LIGHTGREEN, getProperty<Color>(getShape(1), "BackColor")); } CPPUNIT_TEST_FIXTURE(Test, testFdo47267) |