diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-01-12 12:29:07 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-01-12 21:24:20 +0100 |
commit | 82cb5a3bb27bb70c97b3d04b9de97a3ff67231c5 (patch) | |
tree | 85647dabe3184e6a416bdcc777a0f698a8fcb51f /sc/qa/uitest/calc_tests6 | |
parent | 695afb787681c9f288856a1a00fe6041614172d2 (diff) |
uitest: sc: factor out common code ( part 1 )
Change-Id: Ib0b84349c138d361001af4547d91a81d8b5d8e63
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109166
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/qa/uitest/calc_tests6')
-rw-r--r-- | sc/qa/uitest/calc_tests6/tdf107869.py | 8 | ||||
-rw-r--r-- | sc/qa/uitest/calc_tests6/tdf108654.py | 7 | ||||
-rw-r--r-- | sc/qa/uitest/calc_tests6/tdf118638.py | 9 |
3 files changed, 3 insertions, 21 deletions
diff --git a/sc/qa/uitest/calc_tests6/tdf107869.py b/sc/qa/uitest/calc_tests6/tdf107869.py index d388610433b2..3fc73f7e8e02 100644 --- a/sc/qa/uitest/calc_tests6/tdf107869.py +++ b/sc/qa/uitest/calc_tests6/tdf107869.py @@ -5,17 +5,11 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from uitest.framework import UITestCase -from uitest.uihelper.common import get_state_as_dict +from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file 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 - -#https://bugs.documentfoundation.org/show_bug.cgi?id=107869 -def get_url_for_data_file(file_name): - return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri() class tdf107869(UITestCase): def test_tdf107869_undo_redo_delete_row_with_comment(self): diff --git a/sc/qa/uitest/calc_tests6/tdf108654.py b/sc/qa/uitest/calc_tests6/tdf108654.py index 93576fe41379..3f806b7024b1 100644 --- a/sc/qa/uitest/calc_tests6/tdf108654.py +++ b/sc/qa/uitest/calc_tests6/tdf108654.py @@ -5,16 +5,11 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from uitest.framework import UITestCase -from uitest.uihelper.common import get_state_as_dict +from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file 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 - -def get_url_for_data_file(file_name): - return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri() #Bug 108654 - CRASH while undoing paste on a new sheet class tdf108654(UITestCase): diff --git a/sc/qa/uitest/calc_tests6/tdf118638.py b/sc/qa/uitest/calc_tests6/tdf118638.py index b6e700e01939..284c423fe2b2 100644 --- a/sc/qa/uitest/calc_tests6/tdf118638.py +++ b/sc/qa/uitest/calc_tests6/tdf118638.py @@ -11,14 +11,7 @@ from libreoffice.calc.document import get_column from uitest.uihelper.calc import enter_text_to_cell from libreoffice.calc.document import get_cell_by_position from uitest.uihelper.common import select_pos -from uitest.uihelper.common import get_state_as_dict -import time -from uitest.debug import sleep - -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() +from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file #Bug 118638 - subtotal option loses doesn't contain existing format for column class Subtotals(UITestCase): |