[Libreoffice-commits] core.git: sw/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Thu Dec 10 22:43:31 UTC 2020
sw/qa/extras/uiwriter/uiwriter.cxx | 11 +++++++++++
1 file changed, 11 insertions(+)
New commits:
commit 61d07657caab5e0fb8ec4446f67a7044e14dae4b
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Thu Dec 10 22:25:02 2020 +0100
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Thu Dec 10 23:42:43 2020 +0100
tdf#131990: sw_uiwriter: Add unittest
Change-Id: I99ed5b61479076f44bfabdf1cf3b95732fff79f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107581
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx
index 461b971afaf8..fec30772d5dd 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -248,6 +248,7 @@ public:
void testTdf74363();
void testTdf80663();
void testTdf57197();
+ void testTdf131990();
void testTdf90808();
void testTdf97601();
void testTdf75137();
@@ -480,6 +481,7 @@ public:
CPPUNIT_TEST(testTdf74363);
CPPUNIT_TEST(testTdf80663);
CPPUNIT_TEST(testTdf57197);
+ CPPUNIT_TEST(testTdf131990);
CPPUNIT_TEST(testTdf90808);
CPPUNIT_TEST(testTdf97601);
CPPUNIT_TEST(testTdf75137);
@@ -3817,6 +3819,15 @@ void SwUiWriterTest::testTdf57197()
CPPUNIT_ASSERT_EQUAL(sal_Int32(1), xTable->getColumns()->getCount());
}
+void SwUiWriterTest::testTdf131990()
+{
+ SwDoc* pDoc = createDoc();
+ SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell();
+
+ CPPUNIT_ASSERT(!pWrtShell->Up( false, 1, true ));
+ CPPUNIT_ASSERT(!pWrtShell->Down( false, 1, true ));
+}
+
void SwUiWriterTest::testTdf90808()
{
createDoc();
More information about the Libreoffice-commits
mailing list