sw/qa/extras/uiwriter/uiwriter3.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 6acff3b34ce07f88fc469ace05eefa36056a0328
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Thu Dec 23 14:25:15 2021 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Dec 23 21:25:29 2021 +0100

    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 <xiscofa...@libreoffice.org>

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);

Reply via email to