summaryrefslogtreecommitdiff
path: root/uitest
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 /uitest
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 'uitest')
-rw-r--r--uitest/demo_ui/handle_multiple_files.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/uitest/demo_ui/handle_multiple_files.py b/uitest/demo_ui/handle_multiple_files.py
index e60d3884b63e..01e086f3d422 100644
--- a/uitest/demo_ui/handle_multiple_files.py
+++ b/uitest/demo_ui/handle_multiple_files.py
@@ -7,18 +7,9 @@
from libreoffice.uno.propertyvalue import mkPropertyValues
from libreoffice.uno.eventlistener import EventListener
-
from uitest.framework import UITestCase
-
-from uitest.debug import sleep
-
+from uitest.uihelper.common import get_url_for_data_file
import time
-import org.libreoffice.unotest
-import os
-import pathlib
-
-def get_url_for_data_file(file_name):
- return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
class HandleFiles(UITestCase):