summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2023-06-01 10:04:44 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2023-06-01 12:47:21 +0200
commit677ec236e7409681e04578c8501833792c5f8099 (patch)
treed744cb7253d8ccb0edc3bb1de6428365e192980a
parent28f0e847e4e9cebc43cdcf97b8212a70977f2b49 (diff)
CppunitTest_sw_htmlexport: fix test after my previous commit
In 6aec73de12a56a56b3ffd9bb86b559bf0609bf58 "SwModelTestBase: drop mustCalcLayoutOf", I misread the code and thought that loadAndReload wasn't calling calcLayout anymore. Obviously I was wrong. adapt the code to do load and save without calling calcLayout and without reintroducing the mustCalcLayoutOf complexity Change-Id: I4d5619a0443e70bbec89c4513ab86a93d968646c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152477 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sw/qa/extras/htmlexport/htmlexport.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/qa/extras/htmlexport/htmlexport.cxx b/sw/qa/extras/htmlexport/htmlexport.cxx
index 6342fe769ae7..b492f133dc63 100644
--- a/sw/qa/extras/htmlexport/htmlexport.cxx
+++ b/sw/qa/extras/htmlexport/htmlexport.cxx
@@ -340,8 +340,9 @@ DECLARE_HTMLEXPORT_ROUNDTRIP_TEST(testFdo81276, "fdo81276.html")
CPPUNIT_TEST_FIXTURE(HtmlExportTest, testFdo62336)
{
// The problem was essentially a crash during table export as docx/rtf/html
- // If calc-layout is enabled, the crash does not occur
- loadAndReload("fdo62336.docx");
+ // If calc-layout is enabled, the crash does not occur, that's why loadFromURL/save is used
+ loadFromURL(u"fdo62336.docx");
+ save("HTML (StarWriter)");
}
DECLARE_HTMLEXPORT_ROUNDTRIP_TEST(testFdo86857, "fdo86857.html")