summaryrefslogtreecommitdiff
path: root/sw/qa/uitest/styleInspector
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-01-14 10:02:16 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-01-15 00:19:42 +0100
commitfd2dbccefa27f4d24b3d92ba2477202c9963cc9a (patch)
tree92f16761a1f7c4b32354cf72d6157b4256f1682c /sw/qa/uitest/styleInspector
parent5f787d7f9d9d28df6090554c66b9934d0a4904c1 (diff)
uitest: sw: factor out common code ( part 3 )
Change-Id: I8c65b9729b4a5c91c77c278282b54a9410876ca9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109259 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/uitest/styleInspector')
-rw-r--r--sw/qa/uitest/styleInspector/styleInspector.py7
-rw-r--r--sw/qa/uitest/styleInspector/tdf137105.py7
2 files changed, 2 insertions, 12 deletions
diff --git a/sw/qa/uitest/styleInspector/styleInspector.py b/sw/qa/uitest/styleInspector/styleInspector.py
index 8469d274ee3c..49337ee61761 100644
--- a/sw/qa/uitest/styleInspector/styleInspector.py
+++ b/sw/qa/uitest/styleInspector/styleInspector.py
@@ -5,13 +5,8 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
from uitest.framework import UITestCase
-from uitest.uihelper.common import get_state_as_dict
+from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file
from libreoffice.uno.propertyvalue import mkPropertyValues
-import org.libreoffice.unotest
-import pathlib
-
-def get_url_for_data_file(file_name):
- return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
class styleNavigator(UITestCase):
diff --git a/sw/qa/uitest/styleInspector/tdf137105.py b/sw/qa/uitest/styleInspector/tdf137105.py
index bbe8eaae93f5..b0a6b709d1e8 100644
--- a/sw/qa/uitest/styleInspector/tdf137105.py
+++ b/sw/qa/uitest/styleInspector/tdf137105.py
@@ -4,12 +4,7 @@
from uitest.framework import UITestCase
from libreoffice.uno.propertyvalue import mkPropertyValues
-from uitest.uihelper.common import get_state_as_dict
-import org.libreoffice.unotest
-import pathlib
-
-def get_url_for_data_file(file_name):
- return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
+from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file
class tdf137105(UITestCase):