summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-12-23 14:25:15 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-12-23 21:25:29 +0100
commit6acff3b34ce07f88fc469ace05eefa36056a0328 (patch)
tree46d2d2e5ad536a60ccb34d21cb0702c8e9670859 /sw
parent2954039767e1adab7a65838b61a449b701f244a4 (diff)
CppunitTest_sw_uiwriter3: use assert equal instead of !=
Change-Id: I27666c608b4265dd7fc515958c59f18d5b977796 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127358 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/uiwriter/uiwriter3.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter3.cxx b/sw/qa/extras/uiwriter/uiwriter3.cxx
index df0bfbf617f8..80413dcea65f 100644
--- a/sw/qa/extras/uiwriter/uiwriter3.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter3.cxx
@@ -1263,8 +1263,9 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf140828)
dispatchCommand(mxComponent, ".uno:SetAnchorAtChar", {});
Scheduler::ProcessEventsToIdle();
- CPPUNIT_ASSERT(ShpProps->getPropertyValue("AnchorType").get<text::TextContentAnchorType>()
- != text::TextContentAnchorType::TextContentAnchorType_AS_CHARACTER);
+ CPPUNIT_ASSERT_EQUAL(
+ text::TextContentAnchorType::TextContentAnchorType_AT_CHARACTER,
+ ShpProps->getPropertyValue("AnchorType").get<text::TextContentAnchorType>());
uno::Reference<text::XTextFrame> xTxBx(SwTextBoxHelper::getUnoTextFrame(xShp));
CPPUNIT_ASSERT(xTxBx);