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

New commits:
commit 1dc58a1d801b030b4d8fb9ae1e1042aca08db875
Author:     Michael Stahl <michael.st...@allotropia.de>
AuthorDate: Fri Aug 30 15:41:57 2024 +0200
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Mon Sep 2 14:20:11 2024 +0200

    sw: view settings for testHiddenSectionPageDescs
    
    Should be more reliable.
    
    Change-Id: If04f1e246112b1a133773263b2b07ac3870d1676
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172656
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/sw/qa/extras/layout/layout3.cxx b/sw/qa/extras/layout/layout3.cxx
index 6dbbb8e4a5bc..21f491b1248a 100644
--- a/sw/qa/extras/layout/layout3.cxx
+++ b/sw/qa/extras/layout/layout3.cxx
@@ -1781,6 +1781,16 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter3, 
testHiddenSectionPageDescs)
 {
     createSwDoc("hidden-sections-with-pagestyles.odt");
 
+    // hide these just so that the height of the section is what is expected;
+    // otherwise height depends on which tests run previously
+    uno::Sequence<beans::PropertyValue> argsSH(
+        comphelper::InitPropertySequence({ { "ShowHiddenParagraphs", 
uno::Any(false) } }));
+    dispatchCommand(mxComponent, ".uno:ShowHiddenParagraphs", argsSH);
+    uno::Sequence<beans::PropertyValue> args(
+        comphelper::InitPropertySequence({ { "Fieldnames", uno::Any(false) } 
}));
+    dispatchCommand(mxComponent, ".uno:Fieldnames", args);
+    Scheduler::ProcessEventsToIdle();
+
     {
         xmlDocUniquePtr pXmlDoc = parseLayoutDump();
         assertXPath(pXmlDoc, "/root/page"_ostr, 2);

Reply via email to