summaryrefslogtreecommitdiff
path: root/sc/qa/uitest/calc_tests3
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-03-04 13:41:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-03-04 16:00:17 +0100
commitd515aaa11c42a9d5698380c2288ca7eb65228371 (patch)
tree41312e8d98abcd0aaaf9605ae6cf7010f04d675d /sc/qa/uitest/calc_tests3
parentb5f686d818a0e0af1337af1aa736a31536b74e78 (diff)
Fix some UITests to use copies of SRCDIR documents
...so that running those tests with a read-only SRCDIR succeeds. (Needed to move sc/qa/uitest/calc_tests/data/tdf76731.ods to fit the changes made to sc/UITest_statistics.mk; all documents used by that test need to be at the same place.) Change-Id: I5c4a28539b9bacde3ca8983502ceed8e4688c787 Reviewed-on: https://gerrit.libreoffice.org/68683 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc/qa/uitest/calc_tests3')
-rw-r--r--sc/qa/uitest/calc_tests3/tdf57274.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/qa/uitest/calc_tests3/tdf57274.py b/sc/qa/uitest/calc_tests3/tdf57274.py
index 9074daf1e2ee..a3c77109cb51 100644
--- a/sc/qa/uitest/calc_tests3/tdf57274.py
+++ b/sc/qa/uitest/calc_tests3/tdf57274.py
@@ -5,9 +5,10 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
from uitest.framework import UITestCase
+import org.libreoffice.unotest
import os
+import pathlib
from uitest.uihelper.common import get_state_as_dict
-from uitest.path import get_srcdir_url
from libreoffice.calc.document import get_sheet_from_doc
from libreoffice.calc.conditional_format import get_conditional_format_from_sheet
from uitest.debug import sleep
@@ -15,7 +16,7 @@ from libreoffice.calc.document import get_cell_by_position
from libreoffice.uno.propertyvalue import mkPropertyValues
#Bug: Paste Special Link Checkbox fails to insert cell references when the source cell is blank
def get_url_for_data_file(file_name):
- return get_srcdir_url() + "/sc/qa/uitest/calc_tests/data/" + file_name
+ return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
class tdf57274(UITestCase):