diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-04-27 10:06:14 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-04-27 16:27:24 +0200 |
commit | 38a475fbfb346234bcd9976fadf4067c7ea9da29 (patch) | |
tree | 115748158bf8cca56b480ef0b1acaacb27851c22 /sw/qa/extras/rtfimport | |
parent | 0a6ca96436312acfe9a44d005c9a5c42697b8c2f (diff) |
sw: qa: don't use try/catch in unittests
Change-Id: Ib1d6ea6b5e8e7f3e985014210c16725ee7645f7d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133471
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/extras/rtfimport')
-rw-r--r-- | sw/qa/extras/rtfimport/rtfimport.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx index 60301446c35a..9e1e71003b4a 100644 --- a/sw/qa/extras/rtfimport/rtfimport.cxx +++ b/sw/qa/extras/rtfimport/rtfimport.cxx @@ -1160,15 +1160,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFdo49893_3) { load(mpTestDocumentPath, "fdo49893-3.rtf"); // No artifacts (black lines in left top corner) as shape #3 are expected - try - { - getShape(3); - CPPUNIT_FAIL("exception expected: no shape #3 in document"); - } - catch (lang::IndexOutOfBoundsException const&) - { - /* expected */ - } + CPPUNIT_ASSERT_EQUAL(2, getShapes()); // Correct wrapping for shape CPPUNIT_ASSERT_EQUAL(text::WrapTextMode_THROUGH, |