diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-11-04 10:45:08 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-11-04 17:14:38 +0100 |
commit | c44f64621fe11d6a46c79b9793c7c67c60bb66e8 (patch) | |
tree | ba47a4bb6dc4ecb47dd4e77209df8f0fa7f4d956 /sw/qa/uibase/shells | |
parent | 20d5763b2b56b4e3d7569fe9e5cdad87657f6808 (diff) |
SwModelTestBase: make mpTestDocumentPath private
in preparation for future inheritance from UnoApiTest
Change-Id: Ie5dee5af3609d8490d7d7bad0d6dbc4c8fc17bb9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142280
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/uibase/shells')
-rw-r--r-- | sw/qa/uibase/shells/shells.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sw/qa/uibase/shells/shells.cxx b/sw/qa/uibase/shells/shells.cxx index 9efe5cef360d..2f91ba4f8b38 100644 --- a/sw/qa/uibase/shells/shells.cxx +++ b/sw/qa/uibase/shells/shells.cxx @@ -35,11 +35,14 @@ #include <drawdoc.hxx> #include <docsh.hxx> -constexpr OUStringLiteral DATA_DIRECTORY = u"/sw/qa/uibase/shells/data/"; - /// Covers sw/source/uibase/shells/ fixes. class SwUibaseShellsTest : public SwModelTestBase { +public: + SwUibaseShellsTest() + : SwModelTestBase("/sw/qa/uibase/shells/data/") + { + } }; CPPUNIT_TEST_FIXTURE(SwUibaseShellsTest, testTdf130179) @@ -116,7 +119,7 @@ CPPUNIT_TEST_FIXTURE(SwUibaseShellsTest, testOleSavePreviewUpdate) { // Load a document with 2 charts in it. The second is down enough that you have to scroll to // trigger its rendering. Previews are missing for both. - load(DATA_DIRECTORY, "ole-save-preview-update.odt"); + load("ole-save-preview-update.odt"); // Explicitly update OLE previews, etc. dispatchCommand(mxComponent, ".uno:UpdateAll", {}); @@ -137,7 +140,7 @@ CPPUNIT_TEST_FIXTURE(SwUibaseShellsTest, testOleSavePreviewUpdate) CPPUNIT_TEST_FIXTURE(SwUibaseShellsTest, testOlePreviewUpdate) { // Given a document with an embedded Writer object: - load(DATA_DIRECTORY, "ole-preview-update.odt"); + load("ole-preview-update.odt"); // When updating "all" (including OLE previews): dispatchCommand(mxComponent, ".uno:UpdateAll", {}); |