diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-12-23 14:25:15 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-12-23 21:25:29 +0100 |
commit | 6acff3b34ce07f88fc469ace05eefa36056a0328 (patch) | |
tree | 46d2d2e5ad536a60ccb34d21cb0702c8e9670859 /sw | |
parent | 2954039767e1adab7a65838b61a449b701f244a4 (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.cxx | 5 |
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); |