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>
This commit is contained in:
@@ -6,15 +6,10 @@
|
||||
#
|
||||
|
||||
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 libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
from libreoffice.calc.document import get_row
|
||||
from uitest.uihelper.calc import enter_text_to_cell
|
||||
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()
|
||||
|
||||
def is_row_hidden(doc, index):
|
||||
row = get_row(doc, index)
|
||||
|
@@ -6,15 +6,9 @@
|
||||
|
||||
from uitest.framework import UITestCase
|
||||
from libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
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.calc import enter_text_to_cell
|
||||
|
||||
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()
|
||||
|
||||
class autofilter(UITestCase):
|
||||
|
||||
def test_tdf115046(self):
|
||||
|
@@ -7,11 +7,7 @@
|
||||
from uitest.framework import UITestCase
|
||||
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()
|
||||
from uitest.uihelper.common import get_url_for_data_file
|
||||
|
||||
#Bug 101165 - Crashing on a filter selection, every time
|
||||
|
||||
|
@@ -7,11 +7,7 @@
|
||||
from uitest.framework import UITestCase
|
||||
from libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
from libreoffice.calc.document import get_row
|
||||
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_url_for_data_file
|
||||
|
||||
def is_row_hidden(doc, index):
|
||||
row = get_row(doc, index)
|
||||
|
@@ -8,11 +8,7 @@ from uitest.framework import UITestCase
|
||||
from uitest.uihelper.calc import enter_text_to_cell
|
||||
from libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
from libreoffice.calc.document import get_row
|
||||
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_url_for_data_file
|
||||
|
||||
def is_row_hidden(doc, index):
|
||||
row = get_row(doc, index)
|
||||
|
@@ -7,11 +7,7 @@
|
||||
from uitest.framework import UITestCase
|
||||
from libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
from libreoffice.calc.document import get_row
|
||||
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_url_for_data_file
|
||||
|
||||
def is_row_hidden(doc, index):
|
||||
row = get_row(doc, index)
|
||||
|
@@ -7,11 +7,7 @@
|
||||
from uitest.framework import UITestCase
|
||||
from libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
from libreoffice.calc.document import get_row
|
||||
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_url_for_data_file
|
||||
|
||||
def is_row_hidden(doc, index):
|
||||
row = get_row(doc, index)
|
||||
|
@@ -5,13 +5,8 @@
|
||||
# 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 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 97340 - Calc crashes on filtering with select checkbox with space bar
|
||||
|
||||
|
@@ -5,19 +5,13 @@
|
||||
# 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 uitest.debug import sleep
|
||||
from libreoffice.calc.document import get_cell_by_position
|
||||
import org.libreoffice.unotest
|
||||
import pathlib
|
||||
from libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
#Test for the AutoFill feature - auto-fill can't increment last octet of ip addresses
|
||||
|
||||
def get_url_for_data_file(file_name):
|
||||
return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
|
||||
|
||||
class CalcAutofill(UITestCase):
|
||||
|
||||
def test_autofill(self):
|
||||
|
@@ -5,18 +5,14 @@
|
||||
# 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.uihelper.common import get_state_as_dict, get_url_for_data_file
|
||||
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
|
||||
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 pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
|
||||
|
||||
class calcAutosum(UITestCase):
|
||||
|
||||
|
@@ -8,15 +8,8 @@
|
||||
from libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
from uitest.framework import UITestCase
|
||||
from libreoffice.calc.document import get_column
|
||||
import org.libreoffice.unotest
|
||||
import pathlib
|
||||
import time
|
||||
from uitest.debug import sleep
|
||||
from libreoffice.calc.document import get_cell_by_position
|
||||
from uitest.uihelper.common import get_state_as_dict
|
||||
|
||||
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
|
||||
|
||||
class mergedRowsColumns(UITestCase):
|
||||
|
||||
|
@@ -6,15 +6,9 @@
|
||||
#
|
||||
from uitest.framework import UITestCase
|
||||
from libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
import org.libreoffice.unotest
|
||||
import os
|
||||
import pathlib
|
||||
from tempfile import TemporaryDirectory
|
||||
|
||||
|
||||
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_url_for_data_file
|
||||
|
||||
# Bug 120161: PRINTING, PDF Export: Problem with selected cells which cross pages
|
||||
class tdf120161(UITestCase):
|
||||
|
@@ -7,11 +7,7 @@
|
||||
from uitest.framework import UITestCase
|
||||
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()
|
||||
from uitest.uihelper.common import get_url_for_data_file
|
||||
|
||||
class tdf133855(UITestCase):
|
||||
|
||||
|
@@ -5,18 +5,12 @@
|
||||
# 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()
|
||||
|
||||
#consolidatedialog.ui
|
||||
class consolidate(UITestCase):
|
||||
def test_consolidate(self):
|
||||
calc_doc = self.ui_test.load_file(get_url_for_data_file("consolidate.ods"))
|
||||
|
@@ -5,20 +5,16 @@
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
|
||||
import org.libreoffice.unotest
|
||||
import pathlib
|
||||
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_sheet_from_doc
|
||||
from libreoffice.calc.conditional_format import get_conditional_format_from_sheet
|
||||
from uitest.debug import sleep
|
||||
from libreoffice.calc.document import get_cell_by_position
|
||||
from libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
|
||||
#Testcases Sorting TCS_Sorting Stable sorting
|
||||
def get_url_for_data_file(file_name):
|
||||
return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
|
||||
|
||||
class CalcStableSorting(UITestCase):
|
||||
|
||||
|
@@ -5,16 +5,13 @@
|
||||
# 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
|
||||
|
||||
#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()
|
||||
|
||||
class standardFilter(UITestCase):
|
||||
def test_standard_filter(self):
|
||||
|
@@ -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 org.libreoffice.unotest
|
||||
import pathlib
|
||||
import time
|
||||
from uitest.debug import sleep
|
||||
|
||||
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
|
||||
|
||||
class Subtotals(UITestCase):
|
||||
|
||||
|
@@ -5,11 +5,9 @@
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
from uitest.framework import UITestCase
|
||||
import org.libreoffice.unotest
|
||||
import pathlib
|
||||
from uitest.uihelper.common import get_url_for_data_file
|
||||
|
||||
#Bug: Delete a sheet in a calc document and LO crashes
|
||||
def get_url_for_data_file(file_name):
|
||||
return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
|
||||
|
||||
class tdf114992(UITestCase):
|
||||
def test_tdf114992_delete_sheet_crash(self):
|
||||
|
@@ -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 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 pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
|
||||
|
||||
#Bug 118189 - EDITING Crashes on Undo after Cut conditional formatting data
|
||||
|
||||
|
@@ -8,11 +8,7 @@ from uitest.framework import UITestCase
|
||||
from libreoffice.calc.document import get_cell_by_position
|
||||
from libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
from uitest.uihelper.calc import enter_text_to_cell
|
||||
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_url_for_data_file
|
||||
|
||||
class tdf120174(UITestCase):
|
||||
def test_tdf120174(self):
|
||||
|
@@ -5,14 +5,9 @@
|
||||
# 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 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()
|
||||
|
||||
class tdf37623(UITestCase):
|
||||
|
||||
|
@@ -5,17 +5,13 @@
|
||||
# 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
|
||||
#Bug 53482 - UI: Option 'Range contains column headings' ignored
|
||||
|
||||
def get_url_for_data_file(file_name):
|
||||
return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
|
||||
#Bug 53482 - UI: Option 'Range contains column headings' ignored
|
||||
|
||||
class tdf53482(UITestCase):
|
||||
|
||||
|
@@ -5,19 +5,12 @@
|
||||
# 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
|
||||
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()
|
||||
|
||||
#consolidatedialog.ui
|
||||
class tdf77509(UITestCase):
|
||||
def test_tdf77509_consolidate(self):
|
||||
calc_doc = self.ui_test.load_file(get_url_for_data_file("tdf77509.xls"))
|
||||
|
@@ -10,12 +10,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
from uitest.framework import UITestCase
|
||||
from libreoffice.calc.document import get_column
|
||||
from libreoffice.calc.document import get_cell_by_position
|
||||
import org.libreoffice.unotest
|
||||
import pathlib
|
||||
import time
|
||||
|
||||
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_url_for_data_file
|
||||
|
||||
class tdf81351(UITestCase):
|
||||
|
||||
|
@@ -5,12 +5,7 @@
|
||||
# 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
|
||||
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
|
||||
|
||||
class tdf131170(UITestCase):
|
||||
def test_DefineLabelRange(self):
|
||||
|
@@ -5,18 +5,13 @@
|
||||
# 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
|
||||
#Bug 95192 - SORTING Natural sorting not working with non-letter,non-number content
|
||||
|
||||
def get_url_for_data_file(file_name):
|
||||
return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
|
||||
|
||||
class tdf95192(UITestCase):
|
||||
def test_td99627_natural_sort(self):
|
||||
calc_doc = self.ui_test.load_file(get_url_for_data_file("tdf95192.ods"))
|
||||
|
@@ -6,17 +6,10 @@
|
||||
#
|
||||
|
||||
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 libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
from uitest.debug import sleep
|
||||
from uitest.uihelper.calc import enter_text_to_cell
|
||||
from libreoffice.calc.document import get_cell_by_position
|
||||
import org.libreoffice.unotest
|
||||
import pathlib
|
||||
import time
|
||||
|
||||
def get_url_for_data_file(file_name):
|
||||
return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
|
||||
|
||||
class tdf99386(UITestCase):
|
||||
|
||||
|
@@ -5,22 +5,16 @@
|
||||
# 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_sheet_from_doc
|
||||
from libreoffice.calc.conditional_format import get_conditional_format_from_sheet
|
||||
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
|
||||
|
||||
#text to column testcase
|
||||
|
||||
def get_url_for_data_file(file_name):
|
||||
return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
|
||||
|
||||
|
||||
class CalcTextToColumns(UITestCase):
|
||||
|
||||
def test_text_to_columns_dot(self):
|
||||
|
@@ -9,13 +9,8 @@ from uitest.framework import UITestCase
|
||||
from libreoffice.calc.document import get_cell_by_position
|
||||
from libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
from uitest.uihelper.calc import enter_text_to_cell
|
||||
from uitest.uihelper.common import get_state_as_dict
|
||||
from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file
|
||||
import datetime
|
||||
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()
|
||||
|
||||
class CalcTrackedChanges(UITestCase):
|
||||
|
||||
|
@@ -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):
|
||||
|
@@ -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):
|
||||
|
@@ -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):
|
||||
|
@@ -5,19 +5,13 @@
|
||||
# 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_sheet_from_doc
|
||||
from libreoffice.calc.conditional_format import get_conditional_format_from_sheet
|
||||
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 pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
|
||||
|
||||
#Bug 120660 - cells not recalculated after copy/paste different range of cells
|
||||
|
||||
|
@@ -5,19 +5,13 @@
|
||||
# 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_sheet_from_doc
|
||||
from libreoffice.calc.conditional_format import get_conditional_format_from_sheet
|
||||
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 pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
|
||||
|
||||
#Bug 122509 - EDITING Calc crashes when manipulating Negative numbers in red on Currency ( not gtk3 )
|
||||
|
||||
|
@@ -5,18 +5,12 @@
|
||||
# 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
|
||||
from uitest.uihelper.common import get_state_as_dict, type_text
|
||||
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()
|
||||
|
||||
#Bug 124818 - CRASH: selecting all and switching spreadsheet
|
||||
|
||||
|
@@ -5,14 +5,9 @@
|
||||
# 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 libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
from uitest.uihelper.common import change_measurement_unit
|
||||
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()
|
||||
|
||||
class tdf137397(UITestCase):
|
||||
|
||||
|
@@ -5,17 +5,13 @@
|
||||
# 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
|
||||
|
||||
#Bug 31805 - Deleting a column or row from merged cells
|
||||
def get_url_for_data_file(file_name):
|
||||
return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
|
||||
|
||||
class tdf31805(UITestCase):
|
||||
def test_tdf31805_delete_column_merged(self):
|
||||
|
@@ -5,12 +5,7 @@
|
||||
|
||||
from uitest.framework import UITestCase
|
||||
from libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
from uitest.uihelper.common import get_state_as_dict
|
||||
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
|
||||
|
||||
class navigator(UITestCase):
|
||||
|
||||
|
@@ -5,18 +5,13 @@
|
||||
# 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_sheet_from_doc
|
||||
from libreoffice.calc.conditional_format import get_conditional_format_from_sheet
|
||||
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 119343 - EDITING: copied and pasted cells containing formulas are not recalculated (2)
|
||||
|
||||
|
@@ -5,19 +5,13 @@
|
||||
# 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_sheet_from_doc
|
||||
from libreoffice.calc.conditional_format import get_conditional_format_from_sheet
|
||||
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 pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
|
||||
|
||||
#Bug 124829 - CRASH: cutting and undoing a sheet with external links
|
||||
|
||||
|
@@ -5,16 +5,12 @@
|
||||
# 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.common import change_measurement_unit
|
||||
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 126673 - Calc: Auto-fit column and auto-fit row don't work with line break
|
||||
|
||||
|
@@ -7,12 +7,7 @@
|
||||
|
||||
from uitest.framework import UITestCase
|
||||
from libreoffice.uno.propertyvalue import mkPropertyValues
|
||||
from uitest.uihelper.common import get_state_as_dict
|
||||
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
|
||||
|
||||
class namedRanges(UITestCase):
|
||||
|
||||
|
@@ -6,13 +6,8 @@
|
||||
#
|
||||
from uitest.framework import UITestCase
|
||||
from uitest.uihelper.common import change_measurement_unit
|
||||
from uitest.uihelper.common import get_state_as_dict
|
||||
from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file
|
||||
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()
|
||||
|
||||
class tdf137446(UITestCase):
|
||||
|
||||
|
@@ -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 91217 - Crash when deleting rows
|
||||
|
||||
|
@@ -5,18 +5,12 @@
|
||||
# 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 select_pos
|
||||
from uitest.uihelper.common import change_measurement_unit
|
||||
from uitest.uihelper.calc import enter_text_to_cell
|
||||
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
|
||||
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, type_text, get_url_for_data_file
|
||||
|
||||
#Chart Area dialog
|
||||
|
||||
|
@@ -5,18 +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 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
|
||||
from uitest.uihelper.common import get_state_as_dict, type_text
|
||||
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, type_text, get_url_for_data_file
|
||||
|
||||
#Chart Enable Axes dialog
|
||||
|
||||
|
@@ -5,19 +5,12 @@
|
||||
# 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 select_pos
|
||||
from uitest.uihelper.common import change_measurement_unit
|
||||
from uitest.uihelper.calc import enter_text_to_cell
|
||||
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
|
||||
|
||||
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, type_text, get_url_for_data_file
|
||||
|
||||
# test Chart - Data series dialog /core/chart2/uiconfig/ui/tp_SeriesToAxis.ui
|
||||
|
||||
|
@@ -5,18 +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 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
|
||||
from uitest.uihelper.common import get_state_as_dict, type_text
|
||||
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, type_text, get_url_for_data_file
|
||||
|
||||
# Bug 122398 - UI: Cannot specify min/max in axis scale or axis position. Limited between 0 and 100
|
||||
|
||||
|
@@ -6,6 +6,8 @@
|
||||
#
|
||||
|
||||
from libreoffice.uno.propertyvalue import convert_property_values_to_dict, mkPropertyValues
|
||||
import org.libreoffice.unotest
|
||||
import pathlib
|
||||
|
||||
def get_state_as_dict(ui_object):
|
||||
return convert_property_values_to_dict(ui_object.getState())
|
||||
@@ -19,6 +21,9 @@ def select_pos(ui_object, pos):
|
||||
def select_text(ui_object, from_pos, to):
|
||||
ui_object.executeAction("SELECT", mkPropertyValues({"FROM": from_pos, "TO": to}))
|
||||
|
||||
def get_url_for_data_file(file_name):
|
||||
return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
|
||||
|
||||
def change_measurement_unit(UITestCase, unit):
|
||||
UITestCase.ui_test.execute_dialog_through_command(".uno:OptionsTreeDialog")
|
||||
xDialogOpt = UITestCase.xUITest.getTopFocusWindow()
|
||||
|
Reference in New Issue
Block a user