summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-09-10 11:02:48 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2021-09-10 12:41:52 +0200
commitef3329a520b11782c441ee6c2805bed622047407 (patch)
treec04afeb89c9476dfbb5a607dbc06ab739aa06502
parent14d299f8f1e19b39dfa81e143762c6b277c1ae9a (diff)
CppunitTest_sw_rtfexport5: simplify asserts
Directly get the properties as Color Follow-up of 7b3a681a867eeb2d68abd4ce33b07cabfff224ef < tdf#141908: replace usage of sal_Int32 with colors > Change-Id: I23da21b88dad7758856c719ebebaef9ed6fe7ca9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121868 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sw/qa/extras/rtfexport/rtfexport5.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/qa/extras/rtfexport/rtfexport5.cxx b/sw/qa/extras/rtfexport/rtfexport5.cxx
index 44b969c9a6ff..b1d11df3a0f8 100644
--- a/sw/qa/extras/rtfexport/rtfexport5.cxx
+++ b/sw/qa/extras/rtfexport/rtfexport5.cxx
@@ -392,14 +392,12 @@ DECLARE_RTFEXPORT_TEST(testNestedTable, "rhbz1065629.rtf")
table::BorderLine2 halfPtSolid(sal_Int32(COL_BLACK), 0, 18, 0, table::BorderLineStyle::SOLID,
18);
CPPUNIT_ASSERT_BORDER_EQUAL(halfPtSolid, getProperty<table::BorderLine2>(xCell, "LeftBorder"));
- CPPUNIT_ASSERT_EQUAL(COL_TRANSPARENT,
- Color(ColorTransparency, getProperty<sal_Int32>(xCell, "BackColor")));
+ CPPUNIT_ASSERT_EQUAL(COL_TRANSPARENT, getProperty<Color>(xCell, "BackColor"));
xCell.set(xTable->getCellByName("B2"), uno::UNO_QUERY);
CPPUNIT_ASSERT(xCell.is());
CPPUNIT_ASSERT_BORDER_EQUAL(halfPtSolid, getProperty<table::BorderLine2>(xCell, "LeftBorder"));
CPPUNIT_ASSERT_BORDER_EQUAL(halfPtSolid, getProperty<table::BorderLine2>(xCell, "RightBorder"));
- CPPUNIT_ASSERT_EQUAL(COL_TRANSPARENT,
- Color(ColorTransparency, getProperty<sal_Int32>(xCell, "BackColor")));
+ CPPUNIT_ASSERT_EQUAL(COL_TRANSPARENT, getProperty<Color>(xCell, "BackColor"));
// \sect at the end resulted in spurious page break
CPPUNIT_ASSERT_EQUAL(1, getPages());