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/extras/tiledrendering | |
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/extras/tiledrendering')
-rw-r--r-- | sw/qa/extras/tiledrendering/tiledrendering.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/qa/extras/tiledrendering/tiledrendering.cxx b/sw/qa/extras/tiledrendering/tiledrendering.cxx index 5cb98bc928c7..1e8e3b64070b 100644 --- a/sw/qa/extras/tiledrendering/tiledrendering.cxx +++ b/sw/qa/extras/tiledrendering/tiledrendering.cxx @@ -71,8 +71,6 @@ #include <swmodule.hxx> #include <swdll.hxx> -constexpr OUStringLiteral DATA_DIRECTORY = u"/sw/qa/extras/tiledrendering/data/"; - static std::ostream& operator<<(std::ostream& os, ViewShellId id) { os << static_cast<sal_Int32>(id); @@ -116,7 +114,8 @@ protected: }; SwTiledRenderingTest::SwTiledRenderingTest() - : m_bFound(true), + : SwModelTestBase("/sw/qa/extras/tiledrendering/data/"), + m_bFound(true), m_nSelectionBeforeSearchResult(0), m_nSelectionAfterSearchResult(0), m_nInvalidations(0), @@ -164,7 +163,7 @@ SwXTextDocument* SwTiledRenderingTest::createDoc(const char* pName) if (!pName) loadURL("private:factory/swriter", nullptr); else - load(DATA_DIRECTORY, pName); + load(pName); SwXTextDocument* pTextDocument = dynamic_cast<SwXTextDocument*>(mxComponent.get()); CPPUNIT_ASSERT(pTextDocument); |