summaryrefslogtreecommitdiff
path: root/sw/qa/uibase/uiview/uiview.cxx
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-11-07 17:57:05 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-11-08 07:34:25 +0100
commitcf1cd2659f08f7c16a6f32142d424b8df9fab393 (patch)
treede07d990c39b80a95b1ae2cc4743490e6f82b59d /sw/qa/uibase/uiview/uiview.cxx
parentc8eaebecd3af29c031c26142c9d3f7d7abf75b0d (diff)
swmodeltestbase: remove duplicated method
save needs to set mbExported to true, otherwise parseExport returns nullptr Change-Id: I1ba779e0ac0f20663fb722df16210ca144717479 Change-Id: I330abdc72226d5ac7b4d6747bdcc48cedfc9e90f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142400 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/uibase/uiview/uiview.cxx')
-rw-r--r--sw/qa/uibase/uiview/uiview.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/sw/qa/uibase/uiview/uiview.cxx b/sw/qa/uibase/uiview/uiview.cxx
index 35d4d60d7974..4dfae7772b26 100644
--- a/sw/qa/uibase/uiview/uiview.cxx
+++ b/sw/qa/uibase/uiview/uiview.cxx
@@ -138,12 +138,7 @@ CPPUNIT_TEST_FIXTURE(SwUibaseUiviewTest, testKeepRatio)
CPPUNIT_ASSERT(pViewOption->IsKeepRatio());
// Then export as well:
- uno::Reference<frame::XStorable2> xStorable(mxComponent, uno::UNO_QUERY);
- uno::Sequence<beans::PropertyValue> aStoreArgs = {
- comphelper::makePropertyValue("FilterName", OUString("writer8")),
- };
- xStorable->storeToURL(maTempFile.GetURL(), aStoreArgs);
- mbExported = true;
+ save("writer8");
xmlDocUniquePtr pXmlDoc = parseExport("settings.xml");
assertXPathContent(pXmlDoc, "//config:config-item[@config:name='KeepRatio']", "true");
}