sw/qa/extras/ooxmlexport/ooxmlexport12.cxx |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

New commits:
commit 1349f140fcc49e5da78482ca3db09663ccdae0a9
Author:     Justin Luth <jl...@mail.com>
AuthorDate: Tue May 16 14:31:28 2023 -0400
Commit:     Justin Luth <jl...@mail.com>
CommitDate: Wed May 17 02:53:39 2023 +0200

    tdf#138726 LRSpaceItem ooxmlexport12: don't test implementation
    
    To get the desired effect, properties were being spammed
    as direct formatting. Now that LRSpaceItem has been split,
    there is no/less need to spam like that.
    
    Allows https://gerrit.libreoffice.org/c/core/+/151821
    
    make CppunitTest_sw_ooxmlexport12 CPPUNIT_TEST_NAME=testTdf108493
    
    Change-Id: I7b7f109eacb79737d898da5bcf87162b9fa6529e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151850
    Tested-by: Jenkins
    Tested-by: Justin Luth <jl...@mail.com>
    Reviewed-by: Justin Luth <jl...@mail.com>

diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx
index 3805b8c8f593..e406d546aea6 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx
@@ -1731,14 +1731,13 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf95374)
     assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/w:pPr/w:ind", "start", 
"1136");
 }
 
-CPPUNIT_TEST_FIXTURE(Test, testTdf108493)
+DECLARE_OOXMLEXPORT_TEST(testTdf108493, "tdf108493.docx")
 {
-    loadAndSave("tdf108493.docx");
-    xmlDocUniquePtr pXmlDoc = parseExport("word/document.xml");
-    // set in the paragraph
-    assertXPath(pXmlDoc, "/w:document/w:body/w:p[7]/w:pPr/w:ind", "start", 
"709");
+    uno::Reference<beans::XPropertySet> xPara7(getParagraph(7), 
uno::UNO_QUERY);
+    // set in the paragraph (709 twips)
+    CPPUNIT_ASSERT_EQUAL(sal_Int32(1251), getProperty<sal_Int32>(xPara7, 
"ParaLeftMargin"));
     // set in the numbering style (this was 0)
-    assertXPath(pXmlDoc, "/w:document/w:body/w:p[7]/w:pPr/w:ind", "hanging", 
"709");
+    CPPUNIT_ASSERT_EQUAL(sal_Int32(-1251), getProperty<sal_Int32>(xPara7, 
"ParaFirstLineIndent"));
 }
 
 DECLARE_OOXMLEXPORT_TEST(testTdf118691, "tdf118691.docx")

Reply via email to