diff options
Diffstat (limited to 'sw/qa')
108 files changed, 112 insertions, 365 deletions
diff --git a/sw/qa/python/check_cross_references.py b/sw/qa/python/check_cross_references.py index 6aad1c47ca3a..de51d919c7c8 100644 --- a/sw/qa/python/check_cross_references.py +++ b/sw/qa/python/check_cross_references.py @@ -16,17 +16,6 @@ the License at http://www.apache.org/licenses/LICENSE-2.0 . ''' import unittest -import unohelper -import os -from com.sun.star.lang import XMultiServiceFactory -from com.sun.star.text import XTextDocument -from com.sun.star.text import XTextField -from com.sun.star.container import XEnumeration -from com.sun.star.util import XRefreshable -from com.sun.star.container import XEnumerationAccess -from com.sun.star.beans import XPropertySet -from com.sun.star.text import XTextFieldsSupplier -from com.sun.star.container import XNamed from com.sun.star.text.ReferenceFieldPart import (NUMBER, NUMBER_NO_CONTEXT, NUMBER_FULL_CONTEXT, TEXT) from com.sun.star.text.ReferenceFieldSource import BOOKMARK from org.libreoffice.unotest import UnoInProcess diff --git a/sw/qa/python/check_indexed_property_values.py b/sw/qa/python/check_indexed_property_values.py index ceaf82a6cac6..4179872cea4b 100644 --- a/sw/qa/python/check_indexed_property_values.py +++ b/sw/qa/python/check_indexed_property_values.py @@ -17,12 +17,9 @@ ''' import unittest -import unohelper import uno from org.libreoffice.unotest import UnoInProcess from com.sun.star.beans import PropertyValue -from com.sun.star.container import XIndexContainer -from org.libreoffice.unotest import OfficeConnection from com.sun.star.lang import IllegalArgumentException from com.sun.star.lang import IndexOutOfBoundsException diff --git a/sw/qa/python/check_named_property_values.py b/sw/qa/python/check_named_property_values.py index 1a81d13a6323..d11ee2e46651 100644 --- a/sw/qa/python/check_named_property_values.py +++ b/sw/qa/python/check_named_property_values.py @@ -17,13 +17,9 @@ ''' import unittest -import unohelper -import os import uno from org.libreoffice.unotest import UnoInProcess from com.sun.star.beans import PropertyValue -from com.sun.star.container import XNameContainer -from org.libreoffice.unotest import OfficeConnection from com.sun.star.container import ElementExistException from com.sun.star.lang import IllegalArgumentException from com.sun.star.container import NoSuchElementException diff --git a/sw/qa/python/check_range_properties.py b/sw/qa/python/check_range_properties.py index 2be93686242a..26babf5220ce 100644 --- a/sw/qa/python/check_range_properties.py +++ b/sw/qa/python/check_range_properties.py @@ -7,13 +7,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -import math import unittest from org.libreoffice.unotest import UnoInProcess -from com.sun.star.container import NoSuchElementException -from com.sun.star.beans import UnknownPropertyException -from com.sun.star.lang import IndexOutOfBoundsException -from com.sun.star.lang import IllegalArgumentException class CheckRangeProperties(unittest.TestCase): diff --git a/sw/qa/python/check_styles.py b/sw/qa/python/check_styles.py index 48a46a770988..d19f9850b445 100644 --- a/sw/qa/python/check_styles.py +++ b/sw/qa/python/check_styles.py @@ -7,7 +7,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -import math import unittest from org.libreoffice.unotest import UnoInProcess from com.sun.star.container import NoSuchElementException diff --git a/sw/qa/python/check_xautotextcontainer.py b/sw/qa/python/check_xautotextcontainer.py index c460c3d0eaa6..b01125dca3f4 100644 --- a/sw/qa/python/check_xautotextcontainer.py +++ b/sw/qa/python/check_xautotextcontainer.py @@ -11,7 +11,6 @@ import unittest from org.libreoffice.unotest import UnoInProcess from com.sun.star.container import NoSuchElementException from com.sun.star.lang import IllegalArgumentException -from com.sun.star.uno import RuntimeException class XAutoTextContainer(unittest.TestCase): # 0 indicates the path of the Office Basis layer diff --git a/sw/qa/python/check_xautotextgroup.py b/sw/qa/python/check_xautotextgroup.py index a41987103e6b..504f12dcd422 100644 --- a/sw/qa/python/check_xautotextgroup.py +++ b/sw/qa/python/check_xautotextgroup.py @@ -11,7 +11,6 @@ import unittest from org.libreoffice.unotest import UnoInProcess from com.sun.star.container import ElementExistException from com.sun.star.container import NoSuchElementException -from com.sun.star.uno import RuntimeException class XAutoTextGroup(unittest.TestCase): diff --git a/sw/qa/python/check_xmodel.py b/sw/qa/python/check_xmodel.py index 27740958ddb1..6487b4781be2 100644 --- a/sw/qa/python/check_xmodel.py +++ b/sw/qa/python/check_xmodel.py @@ -8,11 +8,9 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # import unittest -import unohelper from org.libreoffice.unotest import UnoInProcess from com.sun.star.lang import IllegalArgumentException from com.sun.star.beans import PropertyValue -import uno class TestXModel(unittest.TestCase): diff --git a/sw/qa/python/text_portion_enumeration_test.py b/sw/qa/python/text_portion_enumeration_test.py index 52b1c2c8b702..47f7c21e5307 100644 --- a/sw/qa/python/text_portion_enumeration_test.py +++ b/sw/qa/python/text_portion_enumeration_test.py @@ -20,11 +20,11 @@ This file incorporates work covered by the following license notice: import uno import unittest import os.path -from org.libreoffice.unotest import UnoInProcess, mkPropertyValue +from org.libreoffice.unotest import UnoInProcess from tempfile import TemporaryDirectory from com.sun.star.uno import RuntimeException from com.sun.star.lang import IllegalArgumentException, NoSupportException -from com.sun.star.beans import PropertyValue, StringPair +from com.sun.star.beans import StringPair from com.sun.star.rdf.URIs import ODF_PREFIX, ODF_SUFFIX from com.sun.star.i18n.NumberFormatIndex import NUMBER_INT from com.sun.star.text.ControlCharacter import PARAGRAPH_BREAK, HARD_HYPHEN diff --git a/sw/qa/python/xcontrolshape.py b/sw/qa/python/xcontrolshape.py index 336a6d3449c0..899c0c20b863 100644 --- a/sw/qa/python/xcontrolshape.py +++ b/sw/qa/python/xcontrolshape.py @@ -8,10 +8,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # import unittest -import unohelper from org.libreoffice.unotest import UnoInProcess from com.sun.star.beans import UnknownPropertyException -import uno class TestXControlShape(unittest.TestCase): diff --git a/sw/qa/python/xstyleloader.py b/sw/qa/python/xstyleloader.py index ed2d7ffca4a4..92b901b9d527 100644 --- a/sw/qa/python/xstyleloader.py +++ b/sw/qa/python/xstyleloader.py @@ -8,11 +8,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -import os import pathlib import unittest -import unohelper -import uno from org.libreoffice.unotest import UnoInProcess, makeCopyFromTDOC from com.sun.star.beans import PropertyValue diff --git a/sw/qa/python/xtext.py b/sw/qa/python/xtext.py index 6d82647bf6b4..db1f83803148 100644 --- a/sw/qa/python/xtext.py +++ b/sw/qa/python/xtext.py @@ -11,7 +11,6 @@ import unittest from org.libreoffice.unotest import UnoInProcess -from com.sun.star.lang import IllegalArgumentException class TestXText(unittest.TestCase): diff --git a/sw/qa/python/xtextcursor.py b/sw/qa/python/xtextcursor.py index 30d0518690a7..2c374bee5870 100644 --- a/sw/qa/python/xtextcursor.py +++ b/sw/qa/python/xtextcursor.py @@ -8,10 +8,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # import unittest -import unohelper from org.libreoffice.unotest import UnoInProcess -import uno -import time class TestXTextCursor(unittest.TestCase): diff --git a/sw/qa/python/xtextfieldssupplier.py b/sw/qa/python/xtextfieldssupplier.py index f99b0fc85ab7..76004a095f26 100755 --- a/sw/qa/python/xtextfieldssupplier.py +++ b/sw/qa/python/xtextfieldssupplier.py @@ -8,10 +8,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # import unittest -import unohelper from org.libreoffice.unotest import UnoInProcess from com.sun.star.container import NoSuchElementException -import uno class TestXTextFieldsSupplier(unittest.TestCase): diff --git a/sw/qa/python/xtextrange.py b/sw/qa/python/xtextrange.py index 75e4aed79561..583cabc30aba 100644 --- a/sw/qa/python/xtextrange.py +++ b/sw/qa/python/xtextrange.py @@ -8,10 +8,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # import unittest -import unohelper from org.libreoffice.unotest import UnoInProcess -import uno -import time class TestXTextRange(unittest.TestCase): diff --git a/sw/qa/uitest/chapterNumbering/chapterNumbering.py b/sw/qa/uitest/chapterNumbering/chapterNumbering.py index 9d3f0b5b4129..b72e6b458ef2 100644 --- a/sw/qa/uitest/chapterNumbering/chapterNumbering.py +++ b/sw/qa/uitest/chapterNumbering/chapterNumbering.py @@ -6,9 +6,8 @@ # from uitest.framework import UITestCase -from uitest.debug import sleep from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import get_state_as_dict from uitest.uihelper.common import select_pos from uitest.uihelper.common import select_by_text from uitest.uihelper.common import change_measurement_unit diff --git a/sw/qa/uitest/chapterNumbering/tdf123547.py b/sw/qa/uitest/chapterNumbering/tdf123547.py index 5e0698f8bd1e..4b2cdf0a5f06 100644 --- a/sw/qa/uitest/chapterNumbering/tdf123547.py +++ b/sw/qa/uitest/chapterNumbering/tdf123547.py @@ -5,9 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file, type_text -from libreoffice.uno.propertyvalue import mkPropertyValues +from uitest.uihelper.common import get_url_for_data_file from uitest.uihelper.common import select_pos #Bug 123547 - Systematic crash after opening Tools > Chapter Numbering diff --git a/sw/qa/uitest/classification/classification.py b/sw/qa/uitest/classification/classification.py index 61ed02cbc52a..72f7dd16bb8a 100644 --- a/sw/qa/uitest/classification/classification.py +++ b/sw/qa/uitest/classification/classification.py @@ -6,10 +6,7 @@ # 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 select_by_text -from uitest.uihelper.calc import enter_text_to_cell -from libreoffice.calc.document import get_cell_by_position from libreoffice.uno.propertyvalue import mkPropertyValues #TSCP: add advanced classification dialog https://cgit.freedesktop.org/libreoffice/core/commit/?id=71ee09947d5a71105d64fd225bb3672dfa7ce834 diff --git a/sw/qa/uitest/findBar/findbar.py b/sw/qa/uitest/findBar/findbar.py index 2620d39a0a98..75bfbb33abd9 100644 --- a/sw/qa/uitest/findBar/findbar.py +++ b/sw/qa/uitest/findBar/findbar.py @@ -8,10 +8,8 @@ # from uitest.framework import UITestCase -import time -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import get_state_as_dict from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.debug import sleep #test Find Bar class FindBar(UITestCase): diff --git a/sw/qa/uitest/findReplace/findReplace.py b/sw/qa/uitest/findReplace/findReplace.py index 14c5cf2188ea..46e00135553e 100644 --- a/sw/qa/uitest/findReplace/findReplace.py +++ b/sw/qa/uitest/findReplace/findReplace.py @@ -6,8 +6,6 @@ # from uitest.framework import UITestCase 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, get_url_for_data_file, type_text diff --git a/sw/qa/uitest/findReplace/tdf106099.py b/sw/qa/uitest/findReplace/tdf106099.py index 8fb8592d6db2..2e8011dab36a 100644 --- a/sw/qa/uitest/findReplace/tdf106099.py +++ b/sw/qa/uitest/findReplace/tdf106099.py @@ -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 select_pos from uitest.uihelper.common import select_by_text -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 +from uitest.uihelper.common import get_state_as_dict #Bug 106099 - Find and replace by format, font color added by force diff --git a/sw/qa/uitest/findReplace/tdf118208.py b/sw/qa/uitest/findReplace/tdf118208.py index 3e2b4373221f..c602158b17a4 100644 --- a/sw/qa/uitest/findReplace/tdf118208.py +++ b/sw/qa/uitest/findReplace/tdf118208.py @@ -5,11 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from uitest.framework import UITestCase -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, get_url_for_data_file, type_text +from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file #Find and replace #tdf118208/118212 - enabling either CJK or CTL, or both (Tools -> Options -> Language Settings -> Languages: Default Languages for Documents checkboxes) diff --git a/sw/qa/uitest/findReplace/tdf119462.py b/sw/qa/uitest/findReplace/tdf119462.py index e87cd8e7b856..8623873cbd02 100644 --- a/sw/qa/uitest/findReplace/tdf119462.py +++ b/sw/qa/uitest/findReplace/tdf119462.py @@ -5,13 +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 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 +from uitest.uihelper.common import get_state_as_dict #Bug 119462 - Find with formatting adds 0pt text size diff --git a/sw/qa/uitest/findSimilarity/findSimilarity.py b/sw/qa/uitest/findSimilarity/findSimilarity.py index cb62e5528c4f..ea8929983f80 100644 --- a/sw/qa/uitest/findSimilarity/findSimilarity.py +++ b/sw/qa/uitest/findSimilarity/findSimilarity.py @@ -5,11 +5,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from uitest.framework import UITestCase -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, get_url_for_data_file, type_text +from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file #Find similarities diff --git a/sw/qa/uitest/librelogo/compile.py b/sw/qa/uitest/librelogo/compile.py index 89e538b8c926..1fb90e955f31 100644 --- a/sw/qa/uitest/librelogo/compile.py +++ b/sw/qa/uitest/librelogo/compile.py @@ -5,13 +5,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text -import time, re -from uitest.debug import sleep -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import select_pos +import re class LibreLogoCompileTest(UITestCase): LIBRELOGO_PATH = "vnd.sun.star.script:LibreLogo|LibreLogo.py$%s?language=Python&location=share" diff --git a/sw/qa/uitest/librelogo/run.py b/sw/qa/uitest/librelogo/run.py index 7b243f00b952..26b8f5c7df44 100644 --- a/sw/qa/uitest/librelogo/run.py +++ b/sw/qa/uitest/librelogo/run.py @@ -5,13 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text - -import time -from uitest.debug import sleep -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import select_pos +from uitest.uihelper.common import type_text class LibreLogoTest(UITestCase): LIBRELOGO_PATH = "vnd.sun.star.script:LibreLogo|LibreLogo.py$%s?language=Python&location=share" diff --git a/sw/qa/uitest/options/tdf78133.py b/sw/qa/uitest/options/tdf78133.py index de1f2124200f..883c38231aa9 100644 --- a/sw/qa/uitest/options/tdf78133.py +++ b/sw/qa/uitest/options/tdf78133.py @@ -6,8 +6,6 @@ # from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.debug import sleep from uitest.uihelper.common import get_state_as_dict #Bug 78133 - LibO crashes when in options dialog diff --git a/sw/qa/uitest/table/sheetToTable.py b/sw/qa/uitest/table/sheetToTable.py index e47d26a52dc4..7beff37c6c8d 100644 --- a/sw/qa/uitest/table/sheetToTable.py +++ b/sw/qa/uitest/table/sheetToTable.py @@ -5,9 +5,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from uitest.framework import UITestCase -from uitest.uihelper.common import select_pos from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file, type_text +from uitest.uihelper.common import get_url_for_data_file from uitest.uihelper.calc import enter_text_to_cell #Calc sheet to Writer table diff --git a/sw/qa/uitest/table/splitTable.py b/sw/qa/uitest/table/splitTable.py index 8994273c4633..402aab45d543 100644 --- a/sw/qa/uitest/table/splitTable.py +++ b/sw/qa/uitest/table/splitTable.py @@ -5,11 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from uitest.framework import UITestCase -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, get_url_for_data_file, type_text +from uitest.uihelper.common import get_url_for_data_file #Writer Split Table diff --git a/sw/qa/uitest/table/tableProperties.py b/sw/qa/uitest/table/tableProperties.py index 59778405bb3d..da75f2218255 100644 --- a/sw/qa/uitest/table/tableProperties.py +++ b/sw/qa/uitest/table/tableProperties.py @@ -7,10 +7,8 @@ from uitest.framework import UITestCase from uitest.uihelper.common import select_pos from uitest.uihelper.common import select_by_text -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, get_url_for_data_file, type_text +from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file from uitest.uihelper.common import change_measurement_unit #Writer Table Properties diff --git a/sw/qa/uitest/table/tableToText.py b/sw/qa/uitest/table/tableToText.py index 003f46e20548..f131f914c93e 100644 --- a/sw/qa/uitest/table/tableToText.py +++ b/sw/qa/uitest/table/tableToText.py @@ -5,11 +5,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from uitest.framework import UITestCase -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, get_url_for_data_file, type_text +from uitest.uihelper.common import get_url_for_data_file #Writer Table to text diff --git a/sw/qa/uitest/table/tdf115026.py b/sw/qa/uitest/table/tdf115026.py index 7e8edcf4260c..92314753a8c3 100644 --- a/sw/qa/uitest/table/tdf115026.py +++ b/sw/qa/uitest/table/tdf115026.py @@ -6,7 +6,6 @@ # from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import get_state_as_dict class tdf115026(UITestCase): diff --git a/sw/qa/uitest/table/tdf116737.py b/sw/qa/uitest/table/tdf116737.py index 7b27020e495e..139fcea3a812 100644 --- a/sw/qa/uitest/table/tdf116737.py +++ b/sw/qa/uitest/table/tdf116737.py @@ -6,9 +6,7 @@ # from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import get_state_as_dict -from uitest.debug import sleep from uitest.uihelper.common import select_pos #Bug 116737 - INSERT TABLE: Can't select table style (gen/gtk) diff --git a/sw/qa/uitest/table/tdf128593.py b/sw/qa/uitest/table/tdf128593.py index 26f9d903be27..3306a58d2b09 100755 --- a/sw/qa/uitest/table/tdf128593.py +++ b/sw/qa/uitest/table/tdf128593.py @@ -2,7 +2,6 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues -import importlib from uitest.uihelper.common import get_state_as_dict #https://bugs.documentfoundation.org/show_bug.cgi?id=128593 diff --git a/sw/qa/uitest/table/tdf134881_colProportionalAdjust.py b/sw/qa/uitest/table/tdf134881_colProportionalAdjust.py index c1b4aea8b4eb..019c492374a1 100644 --- a/sw/qa/uitest/table/tdf134881_colProportionalAdjust.py +++ b/sw/qa/uitest/table/tdf134881_colProportionalAdjust.py @@ -6,7 +6,7 @@ # from uitest.framework import UITestCase from uitest.uihelper.common import select_pos -from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file, type_text +from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file from uitest.uihelper.common import change_measurement_unit from libreoffice.uno.propertyvalue import mkPropertyValues diff --git a/sw/qa/uitest/table/tdf81292.py b/sw/qa/uitest/table/tdf81292.py index 68a79e6733d7..343b1a89bb13 100644 --- a/sw/qa/uitest/table/tdf81292.py +++ b/sw/qa/uitest/table/tdf81292.py @@ -5,8 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file, type_text +from uitest.uihelper.common import get_url_for_data_file #Bug 81292 - TABLE: Crashes on sorting table diff --git a/sw/qa/uitest/table/tdf99334.py b/sw/qa/uitest/table/tdf99334.py index 8c97aff57940..e87226a0c485 100644 --- a/sw/qa/uitest/table/tdf99334.py +++ b/sw/qa/uitest/table/tdf99334.py @@ -5,8 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file, type_text +from uitest.uihelper.common import get_url_for_data_file #Bug 99334 - Crashes when sorting table by columns with umlauts diff --git a/sw/qa/uitest/table/textToTable.py b/sw/qa/uitest/table/textToTable.py index d41c514d2716..d901ae6d2c04 100644 --- a/sw/qa/uitest/table/textToTable.py +++ b/sw/qa/uitest/table/textToTable.py @@ -5,11 +5,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from uitest.framework import UITestCase -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, get_url_for_data_file, type_text +from uitest.uihelper.common import get_url_for_data_file, type_text #Writer Text to table diff --git a/sw/qa/uitest/ui/fmtui/fmtui.py b/sw/qa/uitest/ui/fmtui/fmtui.py index d147022635fb..36e00c95a479 100644 --- a/sw/qa/uitest/ui/fmtui/fmtui.py +++ b/sw/qa/uitest/ui/fmtui/fmtui.py @@ -8,8 +8,6 @@ """Covers sw/source/ui/fmtui/ fixes.""" from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.debug import sleep from uitest.uihelper.common import get_state_as_dict from uitest.uihelper.common import select_pos diff --git a/sw/qa/uitest/writer_tests/comments.py b/sw/qa/uitest/writer_tests/comments.py index c846372a99aa..66ecb06bb246 100644 --- a/sw/qa/uitest/writer_tests/comments.py +++ b/sw/qa/uitest/writer_tests/comments.py @@ -8,11 +8,8 @@ # from uitest.framework import UITestCase -import time -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import get_state_as_dict from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.debug import sleep -from uitest.config import DEFAULT_SLEEP #test comments class Comments(UITestCase): diff --git a/sw/qa/uitest/writer_tests/insertCaption.py b/sw/qa/uitest/writer_tests/insertCaption.py index de73b3b767e5..57f6273875db 100644 --- a/sw/qa/uitest/writer_tests/insertCaption.py +++ b/sw/qa/uitest/writer_tests/insertCaption.py @@ -6,9 +6,6 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict -import time -from uitest.debug import sleep from uitest.uihelper.common import select_pos class insertCaption(UITestCase): diff --git a/sw/qa/uitest/writer_tests/tdf137459_editeng_ctrl-DEL.py b/sw/qa/uitest/writer_tests/tdf137459_editeng_ctrl-DEL.py index 97e60b8c07de..9adbd2047d37 100644 --- a/sw/qa/uitest/writer_tests/tdf137459_editeng_ctrl-DEL.py +++ b/sw/qa/uitest/writer_tests/tdf137459_editeng_ctrl-DEL.py @@ -8,7 +8,7 @@ # from uitest.framework import UITestCase -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import get_state_as_dict from libreoffice.uno.propertyvalue import mkPropertyValues class tdf137459(UITestCase): diff --git a/sw/qa/uitest/writer_tests/tdf53460.py b/sw/qa/uitest/writer_tests/tdf53460.py index f8fc0ad47451..7f4b57416e6f 100644 --- a/sw/qa/uitest/writer_tests/tdf53460.py +++ b/sw/qa/uitest/writer_tests/tdf53460.py @@ -7,7 +7,6 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.debug import sleep class tdf53460(UITestCase): diff --git a/sw/qa/uitest/writer_tests/tdf78068.py b/sw/qa/uitest/writer_tests/tdf78068.py index 145b0bd99b51..1989722a3b1f 100644 --- a/sw/qa/uitest/writer_tests/tdf78068.py +++ b/sw/qa/uitest/writer_tests/tdf78068.py @@ -5,12 +5,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import type_text -import time -from uitest.debug import sleep -from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import select_pos class tdf78068(UITestCase): @@ -33,4 +29,4 @@ class tdf78068(UITestCase): self.assertEqual(document.Text.String[0:4], "Test") self.ui_test.close_doc() -# vim: set shiftwidth=4 softtabstop=4 expandtab:
\ No newline at end of file +# vim: set shiftwidth=4 softtabstop=4 expandtab: diff --git a/sw/qa/uitest/writer_tests/tdf81457.py b/sw/qa/uitest/writer_tests/tdf81457.py index f8b93a9bc60a..bf615f99c2b0 100644 --- a/sw/qa/uitest/writer_tests/tdf81457.py +++ b/sw/qa/uitest/writer_tests/tdf81457.py @@ -8,7 +8,6 @@ # from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file from uitest.uihelper.common import select_pos @@ -41,4 +40,4 @@ class tdf81457(UITestCase): self.ui_test.close_doc() -# vim: set shiftwidth=4 softtabstop=4 expandtab:
\ No newline at end of file +# vim: set shiftwidth=4 softtabstop=4 expandtab: diff --git a/sw/qa/uitest/writer_tests/watermark.py b/sw/qa/uitest/writer_tests/watermark.py index 0d918e92d061..3cf7c6fd84f6 100644 --- a/sw/qa/uitest/writer_tests/watermark.py +++ b/sw/qa/uitest/writer_tests/watermark.py @@ -7,9 +7,6 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import get_state_as_dict -import time -from uitest.debug import sleep -from uitest.uihelper.common import select_pos class watermark(UITestCase): diff --git a/sw/qa/uitest/writer_tests2/asianPhoneticGuide.py b/sw/qa/uitest/writer_tests2/asianPhoneticGuide.py index 137444857258..39ba7eb3595a 100644 --- a/sw/qa/uitest/writer_tests2/asianPhoneticGuide.py +++ b/sw/qa/uitest/writer_tests2/asianPhoneticGuide.py @@ -6,11 +6,7 @@ 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 select_by_text -import time -from uitest.debug import sleep -from uitest.uihelper.common import select_pos class asianPhoneticGuide(UITestCase): diff --git a/sw/qa/uitest/writer_tests2/bookmark.py b/sw/qa/uitest/writer_tests2/bookmark.py index 9cbf82c29b41..57ab151adbcb 100644 --- a/sw/qa/uitest/writer_tests2/bookmark.py +++ b/sw/qa/uitest/writer_tests2/bookmark.py @@ -8,10 +8,8 @@ # from uitest.framework import UITestCase -import time from uitest.uihelper.common import get_state_as_dict, type_text from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.debug import sleep #test bookmark dialog class bookmarkDialog(UITestCase): diff --git a/sw/qa/uitest/writer_tests2/deleteAllComments.py b/sw/qa/uitest/writer_tests2/deleteAllComments.py index 8633e77d49eb..e6832af6cb62 100644 --- a/sw/qa/uitest/writer_tests2/deleteAllComments.py +++ b/sw/qa/uitest/writer_tests2/deleteAllComments.py @@ -5,8 +5,7 @@ # from uitest.framework import UITestCase -import time -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import type_text class DeleteAllComments(UITestCase): @@ -16,7 +15,7 @@ class DeleteAllComments(UITestCase): xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") - + type_text(xWriterEdit, "Test LibreOffice") diff --git a/sw/qa/uitest/writer_tests2/exchangeDatabase.py b/sw/qa/uitest/writer_tests2/exchangeDatabase.py index d255bd15291b..3f3a49660bfc 100644 --- a/sw/qa/uitest/writer_tests2/exchangeDatabase.py +++ b/sw/qa/uitest/writer_tests2/exchangeDatabase.py @@ -6,10 +6,7 @@ # from uitest.framework import UITestCase -import time -from uitest.uihelper.common import get_state_as_dict, type_text -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.debug import sleep +from uitest.uihelper.common import get_state_as_dict class exchangeDB(UITestCase): diff --git a/sw/qa/uitest/writer_tests2/fontworks.py b/sw/qa/uitest/writer_tests2/fontworks.py index 671f63087ba4..4d4044ab2bd0 100644 --- a/sw/qa/uitest/writer_tests2/fontworks.py +++ b/sw/qa/uitest/writer_tests2/fontworks.py @@ -8,9 +8,8 @@ # from uitest.framework import UITestCase -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import get_state_as_dict from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.debug import sleep #test FontWorks dialog class fontWorksDialog(UITestCase): @@ -42,4 +41,4 @@ class fontWorksDialog(UITestCase): self.ui_test.close_doc() -# vim: set shiftwidth=4 softtabstop=4 expandtab:
\ No newline at end of file +# vim: set shiftwidth=4 softtabstop=4 expandtab: diff --git a/sw/qa/uitest/writer_tests2/formatBulletsNumbering.py b/sw/qa/uitest/writer_tests2/formatBulletsNumbering.py index ab053a115b4e..4633666f468d 100644 --- a/sw/qa/uitest/writer_tests2/formatBulletsNumbering.py +++ b/sw/qa/uitest/writer_tests2/formatBulletsNumbering.py @@ -5,11 +5,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import get_state_as_dict -import time -from uitest.debug import sleep from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import select_pos from uitest.uihelper.common import select_by_text diff --git a/sw/qa/uitest/writer_tests2/formatCharacter.py b/sw/qa/uitest/writer_tests2/formatCharacter.py index afb7b555ba54..c0106ddcd47e 100644 --- a/sw/qa/uitest/writer_tests2/formatCharacter.py +++ b/sw/qa/uitest/writer_tests2/formatCharacter.py @@ -5,11 +5,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import get_state_as_dict -import time -from uitest.debug import sleep from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import select_pos from uitest.uihelper.common import select_by_text diff --git a/sw/qa/uitest/writer_tests2/formatParagraph.py b/sw/qa/uitest/writer_tests2/formatParagraph.py index edd37982d2bf..00cce192cb0b 100644 --- a/sw/qa/uitest/writer_tests2/formatParagraph.py +++ b/sw/qa/uitest/writer_tests2/formatParagraph.py @@ -5,11 +5,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import get_state_as_dict -import time -from uitest.debug import sleep from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import select_pos from uitest.uihelper.common import select_by_text diff --git a/sw/qa/uitest/writer_tests2/horizontalLine.py b/sw/qa/uitest/writer_tests2/horizontalLine.py index c102f603157d..f004badfc6ec 100644 --- a/sw/qa/uitest/writer_tests2/horizontalLine.py +++ b/sw/qa/uitest/writer_tests2/horizontalLine.py @@ -6,9 +6,7 @@ # from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import get_state_as_dict, type_text -from uitest.debug import sleep class WriterInsertHorizontalLine(UITestCase): diff --git a/sw/qa/uitest/writer_tests2/insertFootnote.py b/sw/qa/uitest/writer_tests2/insertFootnote.py index 6bd4db73f0bc..e391f6520477 100644 --- a/sw/qa/uitest/writer_tests2/insertFootnote.py +++ b/sw/qa/uitest/writer_tests2/insertFootnote.py @@ -5,10 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text -import time -from uitest.debug import sleep +from uitest.uihelper.common import type_text class insertFootnote(UITestCase): diff --git a/sw/qa/uitest/writer_tests2/tdf116474.py b/sw/qa/uitest/writer_tests2/tdf116474.py index 9dbdd447171a..e6436b73fd73 100644 --- a/sw/qa/uitest/writer_tests2/tdf116474.py +++ b/sw/qa/uitest/writer_tests2/tdf116474.py @@ -4,8 +4,7 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues -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 get_url_for_data_file #Bug 116474 - Undo/redo: The redo of adding caption to an image isn't working: no image diff --git a/sw/qa/uitest/writer_tests3/autoredactDialog.py b/sw/qa/uitest/writer_tests3/autoredactDialog.py index 015081431d7a..240e4bd8bce5 100644 --- a/sw/qa/uitest/writer_tests3/autoredactDialog.py +++ b/sw/qa/uitest/writer_tests3/autoredactDialog.py @@ -5,14 +5,10 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. 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 type_text from uitest.uihelper.common import select_pos -from uitest.uihelper.common import select_text -import time import re -from uitest.debug import sleep class AutoRedactDialog(UITestCase): diff --git a/sw/qa/uitest/writer_tests3/hyperlinkdialog.py b/sw/qa/uitest/writer_tests3/hyperlinkdialog.py index d3554436a935..3fc53e712eae 100644 --- a/sw/qa/uitest/writer_tests3/hyperlinkdialog.py +++ b/sw/qa/uitest/writer_tests3/hyperlinkdialog.py @@ -10,10 +10,8 @@ from uitest.framework import UITestCase import os import re -import time -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import get_state_as_dict from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.debug import sleep #test Hyperlink dialog class HyperlinkDialog(UITestCase): diff --git a/sw/qa/uitest/writer_tests3/insertEndnote.py b/sw/qa/uitest/writer_tests3/insertEndnote.py index 705fce6cef54..54dd15e346b5 100644 --- a/sw/qa/uitest/writer_tests3/insertEndnote.py +++ b/sw/qa/uitest/writer_tests3/insertEndnote.py @@ -5,10 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text -import time -from uitest.debug import sleep +from uitest.uihelper.common import type_text class insertEndnote(UITestCase): diff --git a/sw/qa/uitest/writer_tests3/insertEnvelope.py b/sw/qa/uitest/writer_tests3/insertEnvelope.py index 2d6e3ffefbe2..0b5a8cfe99fb 100644 --- a/sw/qa/uitest/writer_tests3/insertEnvelope.py +++ b/sw/qa/uitest/writer_tests3/insertEnvelope.py @@ -7,7 +7,7 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import get_state_as_dict #envaddresspage.ui diff --git a/sw/qa/uitest/writer_tests3/insertFootEndnote.py b/sw/qa/uitest/writer_tests3/insertFootEndnote.py index be8597411a2d..575abc9ab477 100644 --- a/sw/qa/uitest/writer_tests3/insertFootEndnote.py +++ b/sw/qa/uitest/writer_tests3/insertFootEndnote.py @@ -6,10 +6,6 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text - -import time -from uitest.debug import sleep class insertFootEndnote(UITestCase): diff --git a/sw/qa/uitest/writer_tests3/insertQrCodeGen.py b/sw/qa/uitest/writer_tests3/insertQrCodeGen.py index c346932dd5a1..26bb21b89159 100644 --- a/sw/qa/uitest/writer_tests3/insertQrCodeGen.py +++ b/sw/qa/uitest/writer_tests3/insertQrCodeGen.py @@ -5,8 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import type_text from com.sun.star.lang import IndexOutOfBoundsException class insertQrCode(UITestCase): diff --git a/sw/qa/uitest/writer_tests3/insertSignatureLine.py b/sw/qa/uitest/writer_tests3/insertSignatureLine.py index eb75b6cc89b2..ecfc1c61a1d2 100644 --- a/sw/qa/uitest/writer_tests3/insertSignatureLine.py +++ b/sw/qa/uitest/writer_tests3/insertSignatureLine.py @@ -6,8 +6,6 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text -from libreoffice.uno.propertyvalue import mkPropertyValues from com.sun.star.lang import IndexOutOfBoundsException class insertSignatureLine(UITestCase): diff --git a/sw/qa/uitest/writer_tests3/lineNumbering.py b/sw/qa/uitest/writer_tests3/lineNumbering.py index ce2292cde29b..ec51b4132f80 100644 --- a/sw/qa/uitest/writer_tests3/lineNumbering.py +++ b/sw/qa/uitest/writer_tests3/lineNumbering.py @@ -7,9 +7,8 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text -from uitest.uihelper.common import select_pos from uitest.uihelper.common import select_by_text +from uitest.uihelper.common import get_state_as_dict from uitest.uihelper.common import change_measurement_unit class WriterLineNumbering(UITestCase): diff --git a/sw/qa/uitest/writer_tests3/pageDialog.py b/sw/qa/uitest/writer_tests3/pageDialog.py index 73e523444c6e..942aa6d2e96f 100644 --- a/sw/qa/uitest/writer_tests3/pageDialog.py +++ b/sw/qa/uitest/writer_tests3/pageDialog.py @@ -6,13 +6,11 @@ from uitest.framework import UITestCase from uitest.uihelper.common import select_pos, get_state_as_dict -from com.sun.star.uno import RuntimeException from com.sun.star.awt.GradientStyle import LINEAR from com.sun.star.drawing.HatchStyle import SINGLE from com.sun.star.drawing.BitmapMode import REPEAT from com.sun.star.drawing.RectanglePoint import MIDDLE_MIDDLE -from libreoffice.uno.propertyvalue import mkPropertyValues class WriterPageDialog(UITestCase): diff --git a/sw/qa/uitest/writer_tests3/sort.py b/sw/qa/uitest/writer_tests3/sort.py index 26c988dd68ff..2868c9f8a49e 100644 --- a/sw/qa/uitest/writer_tests3/sort.py +++ b/sw/qa/uitest/writer_tests3/sort.py @@ -6,11 +6,8 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text from uitest.uihelper.common import select_by_text -import time -from uitest.debug import sleep -#Tools -Sort dialog + tdf81292 +from uitest.uihelper.common import type_text class WriterSort(UITestCase): diff --git a/sw/qa/uitest/writer_tests3/specialCharacter.py b/sw/qa/uitest/writer_tests3/specialCharacter.py index 0589d44fb3d1..20955856ba88 100644 --- a/sw/qa/uitest/writer_tests3/specialCharacter.py +++ b/sw/qa/uitest/writer_tests3/specialCharacter.py @@ -7,32 +7,30 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues -import time -from uitest.uihelper.common import get_state_as_dict, type_text -from uitest.debug import sleep +from uitest.uihelper.common import get_state_as_dict from uitest.uihelper.common import select_pos -#specialcharacters.ui + +# specialcharacters.ui class specialCharacter(UITestCase): def test_special_character(self): - self.ui_test.create_doc_in_start_center("writer") xWriterDoc = self.xUITest.getTopFocusWindow() document = self.ui_test.get_component() - self.ui_test.execute_dialog_through_command(".uno:InsertSymbol") #specialCharacter dialog + self.ui_test.execute_dialog_through_command(".uno:InsertSymbol") # specialCharacter dialog xDialog = self.xUITest.getTopFocusWindow() - xCharSet = xDialog.getChild("showcharset") #default charset + xCharSet = xDialog.getChild("showcharset") # default charset - xCharSet.executeAction("SELECT", mkPropertyValues({"COLUMN": "1", "ROW": "4"})) #digit 4 selected + xCharSet.executeAction("SELECT", mkPropertyValues({"COLUMN": "1", "ROW": "4"})) # digit 4 selected xHexText = xDialog.getChild("hexvalue") xDecText = xDialog.getChild("decimalvalue") - self.assertEqual(get_state_as_dict(xHexText)["Text"], "34") # check the values Hex and decimal + self.assertEqual(get_state_as_dict(xHexText)["Text"], "34") # check the values Hex and decimal self.assertEqual(get_state_as_dict(xDecText)["Text"], "52") xCancelBtn = xDialog.getChild("cancel") @@ -42,48 +40,48 @@ class specialCharacter(UITestCase): xDialog = self.xUITest.getTopFocusWindow() xComboFont = xDialog.getChild("fontlb") - select_pos(xComboFont, "0") #select font + select_pos(xComboFont, "0") # select font xComboFont2 = xDialog.getChild("subsetlb") - select_pos(xComboFont2, "0") #select font subset - - xSearchText = xDialog.getChild("search") #test search textBox - xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT":"d"})) - xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT":"i"})) - xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT":"g"})) - xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT":"i"})) - xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT":"t"})) - xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT":" "})) - xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT":"f"})) - xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT":"o"})) - xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT":"u"})) - xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT":"r"})) - -# works locally and linux_gcc_release_64, but fails at linux_clang_dbgutil_64. -#Markus: Actually after a round of debugging I think the problem is actually that the test depends on the used font. -#Therefore, if the font is not available or not selected by default the test fails. -# xCharSet = xDialog.getChild("searchcharset") #another charset -> search charset -# xCharSet.executeAction("SELECT", mkPropertyValues({"COLUMN": "0", "ROW": "0"})) #digit 4 selected, we have only one result; -# sleep(1) #try sleep here -# xCharSet.executeAction("SELECT", mkPropertyValues({"COLUMN": "0", "ROW": "0"})) #try it twice, because it works at local,but fail on gerrit -##gerrit:self.assertEqual(get_state_as_dict(xHexText)["Text"], "34") # check the values for digit 4; AssertionError: '1' != '34' - -# xHexText = xDialog.getChild("hexvalue") -# xDecText = xDialog.getChild("decimalvalue") -# self.assertEqual(get_state_as_dict(xHexText)["Text"], "34") # check the values for digit 4 -# self.assertEqual(get_state_as_dict(xDecText)["Text"], "52") - -# xAddFavBtn = xDialog.getChild("favbtn") -# xAddFavBtn.executeAction("CLICK", tuple()) # Add to favorites button - -# xInsrBtn = xDialog.getChild("insert") -# xInsrBtn.executeAction("CLICK", tuple()) # Insert to document - -# self.assertEqual(document.Text.String[0:1], "4") # check inserted character - -# self.xUITest.executeCommand(".uno:Undo") -# self.xUITest.executeCommand(".uno:Redo") #undo, redo - -# self.assertEqual(document.Text.String[0:1], "4") # check inserted character after undo, redo + select_pos(xComboFont2, "0") # select font subset + + xSearchText = xDialog.getChild("search") # test search textBox + xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT": "d"})) + xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT": "i"})) + xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT": "g"})) + xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT": "i"})) + xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT": "t"})) + xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT": " "})) + xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT": "f"})) + xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT": "o"})) + xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT": "u"})) + xSearchText.executeAction("TYPE", mkPropertyValues({"TEXT": "r"})) + + # works locally and linux_gcc_release_64, but fails at linux_clang_dbgutil_64. + # Markus: Actually after a round of debugging I think the problem is actually that the test depends on the used font. + # Therefore, if the font is not available or not selected by default the test fails. + # xCharSet = xDialog.getChild("searchcharset") #another charset -> search charset + # xCharSet.executeAction("SELECT", mkPropertyValues({"COLUMN": "0", "ROW": "0"})) #digit 4 selected, we have only one result; + # sleep(1) #try sleep here + # xCharSet.executeAction("SELECT", mkPropertyValues({"COLUMN": "0", "ROW": "0"})) #try it twice, because it works at local,but fail on gerrit + ##gerrit:self.assertEqual(get_state_as_dict(xHexText)["Text"], "34") # check the values for digit 4; AssertionError: '1' != '34' + + # xHexText = xDialog.getChild("hexvalue") + # xDecText = xDialog.getChild("decimalvalue") + # self.assertEqual(get_state_as_dict(xHexText)["Text"], "34") # check the values for digit 4 + # self.assertEqual(get_state_as_dict(xDecText)["Text"], "52") + + # xAddFavBtn = xDialog.getChild("favbtn") + # xAddFavBtn.executeAction("CLICK", tuple()) # Add to favorites button + + # xInsrBtn = xDialog.getChild("insert") + # xInsrBtn.executeAction("CLICK", tuple()) # Insert to document + + # self.assertEqual(document.Text.String[0:1], "4") # check inserted character + + # self.xUITest.executeCommand(".uno:Undo") + # self.xUITest.executeCommand(".uno:Redo") #undo, redo + + # self.assertEqual(document.Text.String[0:1], "4") # check inserted character after undo, redo xCancelBtn = xDialog.getChild("cancel") self.ui_test.close_dialog_through_button(xCancelBtn) diff --git a/sw/qa/uitest/writer_tests3/tdf79236.py b/sw/qa/uitest/writer_tests3/tdf79236.py index 8585e48d8c64..bd3862b5e27a 100644 --- a/sw/qa/uitest/writer_tests3/tdf79236.py +++ b/sw/qa/uitest/writer_tests3/tdf79236.py @@ -5,8 +5,7 @@ # from uitest.framework import UITestCase -import time -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import type_text class tdf79236(UITestCase): diff --git a/sw/qa/uitest/writer_tests4/start.py b/sw/qa/uitest/writer_tests4/start.py index 8be8322f519f..1ee80f604013 100644 --- a/sw/qa/uitest/writer_tests4/start.py +++ b/sw/qa/uitest/writer_tests4/start.py @@ -8,7 +8,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.framework import UITestCase -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import get_state_as_dict class SimpleWriterTest(UITestCase): diff --git a/sw/qa/uitest/writer_tests4/tdf113252.py b/sw/qa/uitest/writer_tests4/tdf113252.py index a0b285354e3e..b8f49444ba6b 100644 --- a/sw/qa/uitest/writer_tests4/tdf113252.py +++ b/sw/qa/uitest/writer_tests4/tdf113252.py @@ -5,10 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text -import time -from uitest.debug import sleep +from uitest.uihelper.common import get_state_as_dict from uitest.uihelper.common import select_pos #Bug 113252 - Basic Library Organizer is broken and closing dialogs crashes @@ -46,4 +43,4 @@ class tdf113252(UITestCase): self.assertEqual(get_state_as_dict(xWriterEdit)["CurrentPage"], "1") self.ui_test.close_doc() -# vim: set shiftwidth=4 softtabstop=4 expandtab:
\ No newline at end of file +# vim: set shiftwidth=4 softtabstop=4 expandtab: diff --git a/sw/qa/uitest/writer_tests4/tdf115088.py b/sw/qa/uitest/writer_tests4/tdf115088.py index f10fe7490448..02a8618f4283 100644 --- a/sw/qa/uitest/writer_tests4/tdf115088.py +++ b/sw/qa/uitest/writer_tests4/tdf115088.py @@ -6,9 +6,7 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text -import time -from uitest.debug import sleep +from uitest.uihelper.common import type_text class tdf115088(UITestCase): diff --git a/sw/qa/uitest/writer_tests4/tdf115572.py b/sw/qa/uitest/writer_tests4/tdf115572.py index 890d4b393852..511da669ccc9 100644 --- a/sw/qa/uitest/writer_tests4/tdf115572.py +++ b/sw/qa/uitest/writer_tests4/tdf115572.py @@ -5,10 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text -import time -from uitest.debug import sleep +from uitest.uihelper.common import get_state_as_dict from uitest.uihelper.common import select_pos class tdf115572(UITestCase): diff --git a/sw/qa/uitest/writer_tests4/tdf115573.py b/sw/qa/uitest/writer_tests4/tdf115573.py index bfcb872a8b83..af22c155b21e 100644 --- a/sw/qa/uitest/writer_tests4/tdf115573.py +++ b/sw/qa/uitest/writer_tests4/tdf115573.py @@ -5,10 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text -import time -from uitest.debug import sleep +from uitest.uihelper.common import get_state_as_dict from uitest.uihelper.common import select_pos class tdf115573(UITestCase): diff --git a/sw/qa/uitest/writer_tests4/tdf122449.py b/sw/qa/uitest/writer_tests4/tdf122449.py index 76072dd057ab..1fc69909a978 100644 --- a/sw/qa/uitest/writer_tests4/tdf122449.py +++ b/sw/qa/uitest/writer_tests4/tdf122449.py @@ -7,7 +7,7 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file, type_text +from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file #Bug 122449 - Crash in: mergedlo.dll when closing "Edit Index Entry" dialog (gen/gtk) diff --git a/sw/qa/uitest/writer_tests4/tdf136578.py b/sw/qa/uitest/writer_tests4/tdf136578.py index b30005430deb..3de6e019ec41 100644 --- a/sw/qa/uitest/writer_tests4/tdf136578.py +++ b/sw/qa/uitest/writer_tests4/tdf136578.py @@ -5,7 +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, get_url_for_data_file +from uitest.uihelper.common import get_url_for_data_file class tdf136578(UITestCase): diff --git a/sw/qa/uitest/writer_tests4/tdf138546.py b/sw/qa/uitest/writer_tests4/tdf138546.py index 0513d8c7600c..b57c5748baf9 100644 --- a/sw/qa/uitest/writer_tests4/tdf138546.py +++ b/sw/qa/uitest/writer_tests4/tdf138546.py @@ -6,7 +6,7 @@ # from uitest.framework import UITestCase from uitest.uihelper.common import change_measurement_unit -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import get_state_as_dict from uitest.uihelper.common import select_pos from uitest.uihelper.common import get_url_for_data_file diff --git a/sw/qa/uitest/writer_tests4/tdf51352.py b/sw/qa/uitest/writer_tests4/tdf51352.py index d65800854208..fdc5c66b7e85 100644 --- a/sw/qa/uitest/writer_tests4/tdf51352.py +++ b/sw/qa/uitest/writer_tests4/tdf51352.py @@ -7,7 +7,6 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.debug import sleep class tdf51352(UITestCase): diff --git a/sw/qa/uitest/writer_tests5/DateFormFieldPropertiesDialog.py b/sw/qa/uitest/writer_tests5/DateFormFieldPropertiesDialog.py index 4e87563f9c82..0d110d315a21 100644 --- a/sw/qa/uitest/writer_tests5/DateFormFieldPropertiesDialog.py +++ b/sw/qa/uitest/writer_tests5/DateFormFieldPropertiesDialog.py @@ -6,7 +6,6 @@ # from uitest.framework import UITestCase from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file -from libreoffice.uno.propertyvalue import mkPropertyValues class dateFormFieldDialog(UITestCase): diff --git a/sw/qa/uitest/writer_tests5/autocorrectOptions.py b/sw/qa/uitest/writer_tests5/autocorrectOptions.py index f9d5d5b9117b..645a334187eb 100644 --- a/sw/qa/uitest/writer_tests5/autocorrectOptions.py +++ b/sw/qa/uitest/writer_tests5/autocorrectOptions.py @@ -7,8 +7,6 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import get_state_as_dict -import time -from uitest.debug import sleep from uitest.uihelper.common import select_pos class autocorrectOptions(UITestCase): diff --git a/sw/qa/uitest/writer_tests5/columns.py b/sw/qa/uitest/writer_tests5/columns.py index 0e71c065d057..03ca73b083ad 100644 --- a/sw/qa/uitest/writer_tests5/columns.py +++ b/sw/qa/uitest/writer_tests5/columns.py @@ -6,11 +6,7 @@ # 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 uitest.debug import sleep from libreoffice.uno.propertyvalue import mkPropertyValues #uitest sw / Columns dialog diff --git a/sw/qa/uitest/writer_tests5/tdf107494.py b/sw/qa/uitest/writer_tests5/tdf107494.py index f7eadf68a4c3..0657f33f0635 100644 --- a/sw/qa/uitest/writer_tests5/tdf107494.py +++ b/sw/qa/uitest/writer_tests5/tdf107494.py @@ -5,10 +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, 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 uitest.uihelper.common import get_url_for_data_file from libreoffice.uno.propertyvalue import mkPropertyValues #Bug 107494 - CRASH: LibreOffice crashes while deleting the header containing an image diff --git a/sw/qa/uitest/writer_tests5/tdf117039.py b/sw/qa/uitest/writer_tests5/tdf117039.py index 0ec90810a7b3..b640ab65266a 100644 --- a/sw/qa/uitest/writer_tests5/tdf117039.py +++ b/sw/qa/uitest/writer_tests5/tdf117039.py @@ -8,8 +8,7 @@ # from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file +from uitest.uihelper.common import get_url_for_data_file #Bug 117039 - Print Preview crashes on signed document diff --git a/sw/qa/uitest/writer_tests5/tdf118540.py b/sw/qa/uitest/writer_tests5/tdf118540.py index 6bf46a14396a..2959f2491b64 100644 --- a/sw/qa/uitest/writer_tests5/tdf118540.py +++ b/sw/qa/uitest/writer_tests5/tdf118540.py @@ -8,8 +8,7 @@ # from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file +from uitest.uihelper.common import get_url_for_data_file #Bug 118540 - LO6.1b2: DOCX crashes when properties are opened in print preview mode diff --git a/sw/qa/uitest/writer_tests5/tdf122045.py b/sw/qa/uitest/writer_tests5/tdf122045.py index 80d11384ac8f..c40469a70de8 100644 --- a/sw/qa/uitest/writer_tests5/tdf122045.py +++ b/sw/qa/uitest/writer_tests5/tdf122045.py @@ -6,7 +6,6 @@ # from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import select_pos class tdf122045(UITestCase): diff --git a/sw/qa/uitest/writer_tests5/tdf122722.py b/sw/qa/uitest/writer_tests5/tdf122722.py index cbc46e09c17b..4e91519a37af 100644 --- a/sw/qa/uitest/writer_tests5/tdf122722.py +++ b/sw/qa/uitest/writer_tests5/tdf122722.py @@ -5,11 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import get_state_as_dict, type_text -import time -from uitest.debug import sleep -from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import select_pos #Bug 122722 - Hiding characters will crash. Crash in: SwAttrIter::CtorInitAttrIter(SwTextNode &,SwScriptInfo &,SwTextFrame const *) diff --git a/sw/qa/uitest/writer_tests5/tdf123446.py b/sw/qa/uitest/writer_tests5/tdf123446.py index dd39dd9f5c64..5a48578fa593 100644 --- a/sw/qa/uitest/writer_tests5/tdf123446.py +++ b/sw/qa/uitest/writer_tests5/tdf123446.py @@ -5,10 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text -import time -from uitest.debug import sleep +from uitest.uihelper.common import type_text #Bug 123446 - Writer crashes after undoing + redoing ToC insertion in middle of word class tdf123446(UITestCase): diff --git a/sw/qa/uitest/writer_tests5/titlePage.py b/sw/qa/uitest/writer_tests5/titlePage.py index 644406932c53..f048bc6ea006 100644 --- a/sw/qa/uitest/writer_tests5/titlePage.py +++ b/sw/qa/uitest/writer_tests5/titlePage.py @@ -5,11 +5,6 @@ # 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 #uitest sw / Title Page dialog class titlePage(UITestCase): diff --git a/sw/qa/uitest/writer_tests5/titlePageWizard.py b/sw/qa/uitest/writer_tests5/titlePageWizard.py index f2c235e20fd5..bc5f275e8cfa 100644 --- a/sw/qa/uitest/writer_tests5/titlePageWizard.py +++ b/sw/qa/uitest/writer_tests5/titlePageWizard.py @@ -5,8 +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, get_url_for_data_file -from libreoffice.uno.propertyvalue import mkPropertyValues +from uitest.uihelper.common import get_url_for_data_file # This tests the Format->Title Page wizard, specifically the reset page number portion, # replacing some pages with title pages, diff --git a/sw/qa/uitest/writer_tests5/titlePageWizard2.py b/sw/qa/uitest/writer_tests5/titlePageWizard2.py index 1359dcc8b16e..9c57a7fa5054 100644 --- a/sw/qa/uitest/writer_tests5/titlePageWizard2.py +++ b/sw/qa/uitest/writer_tests5/titlePageWizard2.py @@ -5,8 +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, get_url_for_data_file -from libreoffice.uno.propertyvalue import mkPropertyValues +from uitest.uihelper.common import get_url_for_data_file # This tests both an edge cases, and some more realistic situations. class tdf138907(UITestCase): diff --git a/sw/qa/uitest/writer_tests5/xwindow.py b/sw/qa/uitest/writer_tests5/xwindow.py index 49628776bf76..cdacffcb70ae 100644 --- a/sw/qa/uitest/writer_tests5/xwindow.py +++ b/sw/qa/uitest/writer_tests5/xwindow.py @@ -5,11 +5,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from uitest.framework import UITestCase -import unittest import unohelper -from org.libreoffice.unotest import UnoInProcess from com.sun.star.awt import XMouseListener -from com.sun.star.awt import XToolkitRobot from com.sun.star.awt import MouseButton from com.sun.star.awt import MouseEvent from com.sun.star.awt import KeyEvent diff --git a/sw/qa/uitest/writer_tests5/zoom.py b/sw/qa/uitest/writer_tests5/zoom.py index 3d9e224c1dd9..df92b35e929e 100644 --- a/sw/qa/uitest/writer_tests5/zoom.py +++ b/sw/qa/uitest/writer_tests5/zoom.py @@ -6,9 +6,6 @@ # 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 #uitest sw / View-Zoom diff --git a/sw/qa/uitest/writer_tests6/tdf107847.py b/sw/qa/uitest/writer_tests6/tdf107847.py index d653ddb0adae..522fe99beba1 100644 --- a/sw/qa/uitest/writer_tests6/tdf107847.py +++ b/sw/qa/uitest/writer_tests6/tdf107847.py @@ -5,11 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text from uitest.uihelper.common import select_pos -import time -from uitest.debug import sleep #Bug 107847 - CRASH Opening macro tab of properties dialog (images, frames) causes crash class tdf107847(UITestCase): diff --git a/sw/qa/uitest/writer_tests6/tdf120731.py b/sw/qa/uitest/writer_tests6/tdf120731.py index b9d8f6afb9da..c7177922ad92 100644 --- a/sw/qa/uitest/writer_tests6/tdf120731.py +++ b/sw/qa/uitest/writer_tests6/tdf120731.py @@ -5,11 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from uitest.framework import UITestCase -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, get_url_for_data_file, type_text +from uitest.uihelper.common import get_url_for_data_file #Bug 120731 - Crash cuilo!makeAutoCorrEdit when open character dialog with large amount of text selected diff --git a/sw/qa/uitest/writer_tests6/tdf124586.py b/sw/qa/uitest/writer_tests6/tdf124586.py index 04ac04956dfb..612824ee740e 100644 --- a/sw/qa/uitest/writer_tests6/tdf124586.py +++ b/sw/qa/uitest/writer_tests6/tdf124586.py @@ -5,12 +5,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from uitest.framework import UITestCase -from uitest.uihelper.common import select_pos from uitest.uihelper.common import select_by_text -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, get_url_for_data_file, type_text +from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file #Bug 124586 - Crash if switch from user outline numbering to chapter numbering with same paragraph style diff --git a/sw/qa/uitest/writer_tests6/tdf124675.py b/sw/qa/uitest/writer_tests6/tdf124675.py index f124a554dd08..15cc5c462041 100644 --- a/sw/qa/uitest/writer_tests6/tdf124675.py +++ b/sw/qa/uitest/writer_tests6/tdf124675.py @@ -5,11 +5,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from uitest.framework import UITestCase -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, get_url_for_data_file, type_text +from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file #Bug 124675 - CRASH: after moving the content down and undoing diff --git a/sw/qa/uitest/writer_tests6/tdf126017.py b/sw/qa/uitest/writer_tests6/tdf126017.py index 3639e9ed1b18..d10a68517429 100644 --- a/sw/qa/uitest/writer_tests6/tdf126017.py +++ b/sw/qa/uitest/writer_tests6/tdf126017.py @@ -5,11 +5,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from uitest.framework import UITestCase -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, get_url_for_data_file, type_text +from uitest.uihelper.common import get_url_for_data_file #Bug 126017 - Crash swlo!SwNode::EndOfSectionIndex diff --git a/sw/qa/uitest/writer_tests6/tdf126168.py b/sw/qa/uitest/writer_tests6/tdf126168.py index d25ae711e49d..db60e9edbea0 100644 --- a/sw/qa/uitest/writer_tests6/tdf126168.py +++ b/sw/qa/uitest/writer_tests6/tdf126168.py @@ -6,10 +6,6 @@ from uitest.framework import UITestCase from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.uihelper.common import get_state_as_dict, type_text -from uitest.uihelper.common import select_pos -import time -from uitest.debug import sleep #Bug 126168 - Crash in: rtl_uString_acquire: frame style undo redo class tdf126168(UITestCase): diff --git a/sw/qa/uitest/writer_tests6/tdf126627.py b/sw/qa/uitest/writer_tests6/tdf126627.py index 0fa84b347910..d72f3d91416b 100644 --- a/sw/qa/uitest/writer_tests6/tdf126627.py +++ b/sw/qa/uitest/writer_tests6/tdf126627.py @@ -5,11 +5,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from uitest.framework import UITestCase -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, get_url_for_data_file, type_text +from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file #Bug 126627 - CRASH: undoing redlinehide deletion diff --git a/sw/qa/uitest/writer_tests6/tdf128431.py b/sw/qa/uitest/writer_tests6/tdf128431.py index 88b140235725..17d876bb9a4c 100644 --- a/sw/qa/uitest/writer_tests6/tdf128431.py +++ b/sw/qa/uitest/writer_tests6/tdf128431.py @@ -7,13 +7,6 @@ from uitest.framework import UITestCase from uitest.uihelper.common import select_pos, get_state_as_dict from uitest.uihelper.common import change_measurement_unit -from com.sun.star.uno import RuntimeException -from com.sun.star.awt.GradientStyle import LINEAR -from com.sun.star.drawing.HatchStyle import SINGLE -from com.sun.star.drawing.BitmapMode import REPEAT -from com.sun.star.drawing.RectanglePoint import MIDDLE_MIDDLE - -from libreoffice.uno.propertyvalue import mkPropertyValues #Bug 128431 - Synchronize padding in header borders it is not working class tdf128431(UITestCase): diff --git a/sw/qa/uitest/writer_tests6/tdf44837.py b/sw/qa/uitest/writer_tests6/tdf44837.py index 8354709da8ab..9373d6c89901 100644 --- a/sw/qa/uitest/writer_tests6/tdf44837.py +++ b/sw/qa/uitest/writer_tests6/tdf44837.py @@ -5,10 +5,8 @@ # from uitest.framework import UITestCase -from uitest.uihelper.common import select_pos, get_state_as_dict, type_text -from com.sun.star.uno import RuntimeException +from uitest.uihelper.common import type_text from libreoffice.uno.propertyvalue import mkPropertyValues -from uitest.debug import sleep #Bug 44837 - EDITING 'Replace All' clears current selection class tdf44837(UITestCase): diff --git a/sw/qa/uitest/writer_tests7/tdf104795.py b/sw/qa/uitest/writer_tests7/tdf104795.py index 650f0ca23136..1fcc20f5b013 100644 --- a/sw/qa/uitest/writer_tests7/tdf104795.py +++ b/sw/qa/uitest/writer_tests7/tdf104795.py @@ -8,7 +8,6 @@ # from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file class tdf104795(UITestCase): diff --git a/sw/qa/uitest/writer_tests7/tdf122780.py b/sw/qa/uitest/writer_tests7/tdf122780.py index 0a18a4a85fae..09f881c5c781 100644 --- a/sw/qa/uitest/writer_tests7/tdf122780.py +++ b/sw/qa/uitest/writer_tests7/tdf122780.py @@ -8,7 +8,6 @@ # from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file class tdf122780(UITestCase): diff --git a/sw/qa/uitest/writer_tests7/tdf131936.py b/sw/qa/uitest/writer_tests7/tdf131936.py index 20a5e6b11517..db0c4ae3b47c 100644 --- a/sw/qa/uitest/writer_tests7/tdf131936.py +++ b/sw/qa/uitest/writer_tests7/tdf131936.py @@ -4,7 +4,6 @@ from uitest.framework import UITestCase from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file -from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.config import DEFAULT_SLEEP import time diff --git a/sw/qa/uitest/writer_tests7/tdf132169.py b/sw/qa/uitest/writer_tests7/tdf132169.py index 552c2f5cb409..7914fbf85e15 100644 --- a/sw/qa/uitest/writer_tests7/tdf132169.py +++ b/sw/qa/uitest/writer_tests7/tdf132169.py @@ -6,7 +6,6 @@ # from uitest.framework import UITestCase from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file, type_text -from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.common import change_measurement_unit class tdf132169(UITestCase): diff --git a/sw/qa/uitest/writer_tests7/tdf137802.py b/sw/qa/uitest/writer_tests7/tdf137802.py index 3062d7009195..a4067410f41c 100644 --- a/sw/qa/uitest/writer_tests7/tdf137802.py +++ b/sw/qa/uitest/writer_tests7/tdf137802.py @@ -5,7 +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, get_url_for_data_file +from uitest.uihelper.common import get_url_for_data_file from libreoffice.uno.propertyvalue import mkPropertyValues from com.sun.star.text.TextContentAnchorType import AT_PAGE, AT_PARAGRAPH diff --git a/sw/qa/uitest/writer_tests7/tdf137803.py b/sw/qa/uitest/writer_tests7/tdf137803.py index d3eef57ead81..3e48c267ca55 100644 --- a/sw/qa/uitest/writer_tests7/tdf137803.py +++ b/sw/qa/uitest/writer_tests7/tdf137803.py @@ -5,10 +5,9 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # 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_url_for_data_file + class tdf137803(UITestCase): def test_tdf137803(self): # load the sample file diff --git a/sw/qa/uitest/writer_tests7/tdf140117.py b/sw/qa/uitest/writer_tests7/tdf140117.py index 58db4c4caf79..c6244841241e 100644 --- a/sw/qa/uitest/writer_tests7/tdf140117.py +++ b/sw/qa/uitest/writer_tests7/tdf140117.py @@ -6,7 +6,6 @@ # 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 select_pos from uitest.uihelper.common import type_text from uitest.uihelper.common import get_url_for_data_file |