summaryrefslogtreecommitdiff
path: root/sw/qa/api/SwXTextTable.cxx
diff options
context:
space:
mode:
authorMoaz <moaz.eldefrawy@gmail.com>2021-02-25 15:52:06 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-03-05 08:36:52 +0100
commitdbbda04d52e75858840ce9748a19a61a1c565149 (patch)
tree66c2d38ff6b0ef77dae47962050e93614b054db1 /sw/qa/api/SwXTextTable.cxx
parent5146d482a20494069670496786a1ba3037e979ce (diff)
tdf#139734 Remove redundant asserts after functions loadFromDesktop and load
MacrosTest::loadFromDesktop itself asserts on its return value. Thus, the additional checks in unit tests are redundant, and only create noise unrelated to the tested functionality. SwModelTestBase::load calls SwModelTestBase::loadURL which calls loadFromDesktop from within. Change-Id: I30061bbc6e13e05f0cfbf17a7910926070b996f3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111547 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/qa/api/SwXTextTable.cxx')
-rw-r--r--sw/qa/api/SwXTextTable.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/sw/qa/api/SwXTextTable.cxx b/sw/qa/api/SwXTextTable.cxx
index 8f8f18062e7e..71a3a502cabc 100644
--- a/sw/qa/api/SwXTextTable.cxx
+++ b/sw/qa/api/SwXTextTable.cxx
@@ -69,7 +69,6 @@ void SwXTextTable::triggerDesktopTerminate() { mxDesktop->terminate(); }
Reference<XInterface> SwXTextTable::init()
{
component_ = loadFromDesktop("private:factory/swriter", "com.sun.star.text.TextDocument");
- CPPUNIT_ASSERT(component_.is());
Reference<text::XTextDocument> xTextDocument(component_, UNO_QUERY_THROW);
Reference<lang::XMultiServiceFactory> xMSF(component_, UNO_QUERY_THROW);
Reference<text::XText> xText = xTextDocument->getText();