[Libreoffice-commits] core.git: sw/qa

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Mon Apr 20 16:23:23 UTC 2020


 sw/qa/extras/uiwriter/uiwriter3.cxx |   14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

New commits:
commit f9f556075bf8de31a3155b14b8c9beb8a8b02d0e
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Apr 20 16:45:21 2020 +0200
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Mon Apr 20 18:22:46 2020 +0200

    tdf#128209: sw: uncomment commented asserts
    
    Fixed in 66b39ca79b36da8d5e151deab17a0fb7690eebe6
    
    Change-Id: I2d805061ffd3efa455b0b4eecc02a77fb197ba68
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92580
    Tested-by: Jenkins
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>

diff --git a/sw/qa/extras/uiwriter/uiwriter3.cxx b/sw/qa/extras/uiwriter/uiwriter3.cxx
index 4f03eaa33895..4b11d29637d3 100644
--- a/sw/qa/extras/uiwriter/uiwriter3.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter3.cxx
@@ -360,9 +360,8 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf130685)
     dispatchCommand(mxComponent, ".uno:Undo", {});
     CPPUNIT_ASSERT_EQUAL(1, getPages());
 
-    //FIXME: See tdf#131147
-    //dispatchCommand(mxComponent, ".uno:Undo", {});
-    //CPPUNIT_ASSERT_EQUAL(2, getPages());
+    dispatchCommand(mxComponent, ".uno:Undo", {});
+    CPPUNIT_ASSERT_EQUAL(2, getPages());
 }
 
 CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf130680)
@@ -384,11 +383,10 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf130680)
     CPPUNIT_ASSERT_EQUAL(sal_Int32(0), xIndexAccess->getCount());
     dispatchCommand(mxComponent, ".uno:Paste", {});
     CPPUNIT_ASSERT_EQUAL(sal_Int32(1), xIndexAccess->getCount());
-    //FIXME: See tdf#131147
-    //dispatchCommand(mxComponent, ".uno:Undo", {});
-    //CPPUNIT_ASSERT_EQUAL(sal_Int32(0), xIndexAccess->getCount());
-    //dispatchCommand(mxComponent, ".uno:Undo", {});
-    //CPPUNIT_ASSERT_EQUAL(sal_Int32(23), xIndexAccess->getCount());
+    dispatchCommand(mxComponent, ".uno:Undo", {});
+    CPPUNIT_ASSERT_EQUAL(sal_Int32(0), xIndexAccess->getCount());
+    dispatchCommand(mxComponent, ".uno:Undo", {});
+    CPPUNIT_ASSERT_EQUAL(sal_Int32(23), xIndexAccess->getCount());
 }
 
 CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf131684)


More information about the Libreoffice-commits mailing list