summaryrefslogtreecommitdiff
path: root/sc/qa/uitest/textCase/textCase.py
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/uitest/textCase/textCase.py')
-rw-r--r--sc/qa/uitest/textCase/textCase.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/sc/qa/uitest/textCase/textCase.py b/sc/qa/uitest/textCase/textCase.py
index d3823f1dacc6..7b399670224c 100644
--- a/sc/qa/uitest/textCase/textCase.py
+++ b/sc/qa/uitest/textCase/textCase.py
@@ -130,22 +130,20 @@ class textCase(UITestCase):
with self.ui_test.load_file(get_url_for_data_file("tdf119155.xlsx")) as calc_doc:
xCalcDoc = self.xUITest.getTopFocusWindow()
gridwin = xCalcDoc.getChild("grid_window")
- document = self.ui_test.get_component()
#1. Open attached file
#2. Select cells from C2 to C14
gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "C2:C14"}))
#3. Go to menu: Format->Text->Capitalize Every Word
self.xUITest.executeCommand(".uno:ChangeCaseToTitleCase")
#Actual Results:Freezes LibreOffice
- self.assertEqual(get_cell_by_position(document, 0, 2, 1).getString(), "Collagene Expert Targeted Wrinkle Corrector Unboxed 10 Ml")
- self.assertEqual(get_cell_by_position(document, 0, 2, 13).getString(), "Vitamina Suractivee Hand Cream 400 Ml")
+ self.assertEqual(get_cell_by_position(calc_doc, 0, 2, 1).getString(), "Collagene Expert Targeted Wrinkle Corrector Unboxed 10 Ml")
+ self.assertEqual(get_cell_by_position(calc_doc, 0, 2, 13).getString(), "Vitamina Suractivee Hand Cream 400 Ml")
def test_tdf119162_Cycle_Case(self):
#Bug 119162 - Format > Text > Cycle Case on attached example file hangs Calc reproducibly
with self.ui_test.load_file(get_url_for_data_file("tdf119162.xls")) as calc_doc:
xCalcDoc = self.xUITest.getTopFocusWindow()
gridwin = xCalcDoc.getChild("grid_window")
- document = self.ui_test.get_component()
#1.Open the attached .xls file
#2. Select column A
gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A1"}))
@@ -153,6 +151,6 @@ class textCase(UITestCase):
self.xUITest.executeCommand(".uno:ChangeCaseRotateCase")
self.xUITest.executeCommand(".uno:ChangeCaseToLower")
#Actual Results:Freezes LibreOffice
- self.assertEqual(get_cell_by_position(document, 0, 0, 0).getString(), "test\n")
+ self.assertEqual(get_cell_by_position(calc_doc, 0, 0, 0).getString(), "test\n")
# vim: set shiftwidth=4 softtabstop=4 expandtab: