summaryrefslogtreecommitdiff
path: root/sw/qa/uibase/frmdlg
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-07-29 21:03:29 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-07-30 09:07:03 +0200
commit286aeb8385285220105c21ef352f5c437e19ebb5 (patch)
treee48160ca9e0342b310ef930c0cfd714f1fd5fd87 /sw/qa/uibase/frmdlg
parentd6ce2c0500ab026ba131782365a41da93794196f (diff)
sw: extract createDoc() from various test suites to a single getSwDoc()
Change-Id: I72d769860be8a401416e57111bea91d7a26ea4e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99751 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/qa/uibase/frmdlg')
-rw-r--r--sw/qa/uibase/frmdlg/frmdlg.cxx16
1 files changed, 1 insertions, 15 deletions
diff --git a/sw/qa/uibase/frmdlg/frmdlg.cxx b/sw/qa/uibase/frmdlg/frmdlg.cxx
index 3700abb9d946..39d55be0a880 100644
--- a/sw/qa/uibase/frmdlg/frmdlg.cxx
+++ b/sw/qa/uibase/frmdlg/frmdlg.cxx
@@ -16,26 +16,12 @@ char const DATA_DIRECTORY[] = "/sw/qa/uibase/frmdlg/data/";
/// Covers sw/source/uibase/frmdlg/ fixes.
class SwUibaseFrmdlgTest : public SwModelTestBase
{
-public:
- void createDoc(const char* pName = nullptr);
};
-void SwUibaseFrmdlgTest::createDoc(const char* pName)
-{
- if (!pName)
- {
- loadURL("private:factory/swriter", nullptr);
- }
- else
- {
- load(DATA_DIRECTORY, pName);
- }
-}
-
CPPUNIT_TEST_FIXTURE(SwUibaseFrmdlgTest, testWrappedMathObject)
{
// The document includes a Math object with explicit wrapping.
- createDoc("wrapped-math-object.docx");
+ load(DATA_DIRECTORY, "wrapped-math-object.docx");
uno::Reference<drawing::XShape> xMath = getShape(1);
// Without the accompanying fix in place, this test would have failed with: