summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-10-23 13:24:48 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2020-10-23 22:15:39 +0200
commitcfbd76b5e58431d9a7e036830f5ac4052206c3b1 (patch)
tree5c8ee8522ac25dafc13f2a840bad98105ba7309c
parent26015550759b846b58dbc0ba458a91c135d0a09c (diff)
uitest: get_url_for_data_file -> pathlib.Path
Change-Id: Ib8495528e44f6b1e1f9992cb38d38cca21cfee42 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104724 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--uitest/writer_tests7/goToPage.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/uitest/writer_tests7/goToPage.py b/uitest/writer_tests7/goToPage.py
index d20f042dfb9a..7c56791a9066 100644
--- a/uitest/writer_tests7/goToPage.py
+++ b/uitest/writer_tests7/goToPage.py
@@ -6,11 +6,11 @@
from uitest.framework import UITestCase
from libreoffice.uno.propertyvalue import mkPropertyValues
from uitest.uihelper.common import get_state_as_dict
-import time
-from uitest.path import get_srcdir_url
+import org.libreoffice.unotest
+import pathlib
def get_url_for_data_file(file_name):
- return get_srcdir_url() + "/uitest/writer_tests/data/" + file_name
+ return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
class GoToPage_dialog(UITestCase):