sw/qa/extras/layout/layout3.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 4b9be7cb9486f0566a7dec973867e1fe7c5ebc5d
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Mon Sep 2 10:20:50 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Sep 2 13:18:24 2024 +0200

    tdf#152919: Add comment about unittest
    
    Covered by unittest added in a97e245ba11598050e1800fde9ace796d20e9df2
    "sw: layout: fix page breaks when unhiding a hidden section"
    
    See 
https://gerrit.libreoffice.org/c/core/+/172663/comments/86259634_a0fdbeff
    
    Change-Id: Ib1913c04c6a487c2009228d66788c8d065e3405f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172734
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/qa/extras/layout/layout3.cxx b/sw/qa/extras/layout/layout3.cxx
index fdf11937fc6e..6dbbb8e4a5bc 100644
--- a/sw/qa/extras/layout/layout3.cxx
+++ b/sw/qa/extras/layout/layout3.cxx
@@ -1812,6 +1812,10 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter3, 
testHiddenSectionPageDescs)
 
     {
         xmlDocUniquePtr pXmlDoc = parseLayoutDump();
+
+        // tdf#152919: Without the fix in place, this test would have failed 
with
+        // - Expected: 3
+        // - Actual  : 2
         assertXPath(pXmlDoc, "/root/page"_ostr, 3);
         assertXPath(pXmlDoc, "/root/page[1]"_ostr, "formatName"_ostr, "Hotti");
         assertXPath(pXmlDoc, "/root/page[1]/body/section"_ostr, 2);

Reply via email to