[Libreoffice-commits] core.git: uitest/writer_tests7

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Fri Oct 23 20:16:40 UTC 2020


 uitest/writer_tests7/goToPage.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit cfbd76b5e58431d9a7e036830f5ac4052206c3b1
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Fri Oct 23 13:24:48 2020 +0200
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Fri Oct 23 22:15:39 2020 +0200

    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 at libreoffice.org>

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):
 


More information about the Libreoffice-commits mailing list