summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-06-14 20:48:39 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2021-06-14 22:25:11 +0200
commit3a907c593fe623b28670f32df75c7d96c6b2905b (patch)
tree47ff7c0373857b7c528aaf6419259372dc5fe9b7 /sw/qa
parentbc63b8a94d95cf86da142bfd4f8d0a6b3ba3d83f (diff)
sw_uiwriter: use createSwDoc
Change-Id: I0fbdf08400850c647e8af1dc5fc689f85cd02311 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117192 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/uiwriter/uiwriter.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx
index 23b7d9bb8e96..533c752349ea 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -757,7 +757,7 @@ void SwUiWriterTest::testFdo69893()
void SwUiWriterTest::testFdo70807()
{
- load(DATA_DIRECTORY, "fdo70807.odt");
+ createSwDoc(DATA_DIRECTORY, "fdo70807.odt");
uno::Reference<container::XIndexAccess> xStylesIter(getStyles("PageStyles"), uno::UNO_QUERY);
@@ -1367,7 +1367,7 @@ void SwUiWriterTest::testChineseConversionSimplifiedToTraditional()
void SwUiWriterTest::testFdo85554()
{
// Load the document, it contains one shape with a textbox.
- load(u"/sw/qa/extras/uiwriter/data/", "fdo85554.odt");
+ createSwDoc(DATA_DIRECTORY, "fdo85554.odt");
// Add a second shape to the document.
uno::Reference<css::lang::XMultiServiceFactory> xFactory(mxComponent, uno::UNO_QUERY);
@@ -3952,7 +3952,7 @@ void SwUiWriterTest::testEmbeddedDataSource()
// Load: should have a component and a data source, too.
// Path with "#" must not cause issues
- load(OUString(DATA_DIRECTORY + OUString::Concat(u"hash%23path/")), "embedded-data-source.odt");
+ createSwDoc(OUString(DATA_DIRECTORY + OUString::Concat(u"hash%23path/")), "embedded-data-source.odt");
CPPUNIT_ASSERT(xDatabaseContext->hasByName("calc-data-source"));
// Data source has a table named Sheet1.
@@ -4233,7 +4233,7 @@ void SwUiWriterTest::testUnicodeNotationToggle()
void SwUiWriterTest::testTdf34957()
{
- load(DATA_DIRECTORY, "tdf34957.odt");
+ createSwDoc(DATA_DIRECTORY, "tdf34957.odt");
// table with "keep with next" always started on a new page if the table was large,
// regardless of whether it was already kept with the previous paragraph,
// or whether the following paragraph actually fit on the same page (MAB 3.6 - 5.0)