diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-12-10 22:25:02 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-12-10 23:42:43 +0100 |
commit | 61d07657caab5e0fb8ec4446f67a7044e14dae4b (patch) | |
tree | bfd5b6a1f3b89c24f0024ae71af3747cbeb0c630 /sw | |
parent | 7e5991dc695d1e590483615c2907811ce4117834 (diff) |
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@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
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(); |