Kaydet (Commit) d515aaa1 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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: 's avatarStephan Bergmann <sbergman@redhat.com>
üst b5f686d8
......@@ -12,4 +12,9 @@ $(eval $(call gb_UITest_UITest,range_name))
$(eval $(call gb_UITest_add_modules,range_name,$(SRCDIR)/sc/qa/uitest,\
range_name/ \
))
$(eval $(call gb_UITest_set_defs,range_name, \
TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
))
# vim: set noet sw=4 ts=4:
......@@ -14,7 +14,7 @@ $(eval $(call gb_UITest_add_modules,statistics,$(SRCDIR)/sc/qa/uitest,\
))
$(eval $(call gb_UITest_set_defs,statistics, \
TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
TDOC="$(SRCDIR)/sc/qa/uitest/statistics/data" \
))
# vim: set noet sw=4 ts=4:
......@@ -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
#AutoSum feature test
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 calcAutosum(UITestCase):
......
......@@ -10,13 +10,11 @@ from uitest.uihelper.common import select_pos
from uitest.uihelper.calc import enter_text_to_cell
from libreoffice.calc.document import get_cell_by_position
from libreoffice.uno.propertyvalue import mkPropertyValues
# import org.libreoffice.unotest
# import pathlib
from uitest.path import get_srcdir_url
import org.libreoffice.unotest
import pathlib
#Bug 113979 - Paste unformatted text does not ignore empty cells
def get_url_for_data_file(file_name):
# return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
return get_srcdir_url() + "/sc/qa/uitest/calc_tests/data/" + file_name
return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
class standardFilter(UITestCase):
def test_standard_filter(self):
......
......@@ -5,10 +5,11 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
from uitest.framework import UITestCase
from uitest.path import get_srcdir_url
import org.libreoffice.unotest
import pathlib
#Bug: Delete a sheet in a calc document and LO crashes
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 tdf114992(UITestCase):
def test_tdf114992_delete_sheet_crash(self):
......
......@@ -10,13 +10,11 @@ from uitest.uihelper.common import select_pos
from uitest.uihelper.calc import enter_text_to_cell
from libreoffice.calc.document import get_cell_by_position
from libreoffice.uno.propertyvalue import mkPropertyValues
# import org.libreoffice.unotest
# import pathlib
from uitest.path import get_srcdir_url
import org.libreoffice.unotest
import pathlib
#Bug 54018 - EDITING: CRASH sorting cells range with Comments
def get_url_for_data_file(file_name):
# return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
return get_srcdir_url() + "/sc/qa/uitest/calc_tests/data/" + file_name
return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
class tdf54018(UITestCase):
def test_td54018_sort_with_comments(self):
......
......@@ -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):
......
......@@ -12,13 +12,10 @@ from libreoffice.calc.document import get_cell_by_position
from libreoffice.uno.propertyvalue import mkPropertyValues
from uitest.uihelper.common import get_state_as_dict, type_text
from uitest.debug import sleep
# import org.libreoffice.unotest
# import pathlib
from uitest.path import get_srcdir_url
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()
return get_srcdir_url() + "/sc/qa/uitest/calc_tests/data/" + file_name
return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
#Bug 123231 - Chart set trendline format regression type Power twice
......
......@@ -13,13 +13,11 @@ from libreoffice.uno.propertyvalue import mkPropertyValues
from uitest.uihelper.common import get_state_as_dict, type_text
from uitest.uihelper.keyboard import select_all
from uitest.debug import sleep
# import org.libreoffice.unotest
# import pathlib
from uitest.path import get_srcdir_url
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()
return get_srcdir_url() + "/sc/qa/uitest/calc_tests/data/" + file_name
return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
#Bug 119954 - Using a second defined database range in formula expression switches to first range.
......
......@@ -12,13 +12,11 @@ from libreoffice.calc.document import get_cell_by_position
from libreoffice.uno.propertyvalue import mkPropertyValues
from uitest.uihelper.common import get_state_as_dict, type_text
from uitest.debug import sleep
# import org.libreoffice.unotest
# import pathlib
from uitest.path import get_srcdir_url
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()
return get_srcdir_url() + "/sc/qa/uitest/search_replace/data/" + file_name
return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
#Bug 39959 - Find-and-replace doesn't search all tables anymore
......
......@@ -5,7 +5,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
from uitest.framework import UITestCase
from uitest.path import get_srcdir_url
from uitest.uihelper.common import get_state_as_dict
from uitest.uihelper.common import select_pos
from uitest.uihelper.calc import enter_text_to_cell
......@@ -13,9 +12,11 @@ from libreoffice.calc.document import get_sheet_from_doc
from uitest.debug import sleep
from libreoffice.calc.document import get_cell_by_position
from libreoffice.uno.propertyvalue import mkPropertyValues
import org.libreoffice.unotest
import pathlib
def get_url_for_data_file(file_name):
return get_srcdir_url() + "/sc/qa/uitest/statistics/data/" + file_name
return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
class regression(UITestCase):
def test_regression_row(self):
......
......@@ -9,15 +9,13 @@ from libreoffice.uno.propertyvalue import mkPropertyValues
from uitest.uihelper.common import get_state_as_dict, type_text
import time
from uitest.debug import sleep
# import org.libreoffice.unotest
# import pathlib
from uitest.path import get_srcdir_url
import org.libreoffice.unotest
import pathlib
#Bug 81292 - TABLE: Crashes on sorting table
def get_url_for_data_file(file_name):
# return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
return get_srcdir_url() + "/sw/qa/uitest/writer_tests/data/" + file_name
return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
class tdf81292(UITestCase):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment