summaryrefslogtreecommitdiff
path: root/sw/qa/uitest/table/sheetToTable.py
diff options
context:
space:
mode:
Diffstat (limited to 'sw/qa/uitest/table/sheetToTable.py')
-rw-r--r--sw/qa/uitest/table/sheetToTable.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/sw/qa/uitest/table/sheetToTable.py b/sw/qa/uitest/table/sheetToTable.py
index e90f65e9fa3f..11b9fe89b490 100644
--- a/sw/qa/uitest/table/sheetToTable.py
+++ b/sw/qa/uitest/table/sheetToTable.py
@@ -15,13 +15,11 @@ from uitest.uihelper.calc import enter_text_to_cell
class sheetToTable(UITestCase):
def test_sheet_to_table_without_hidden_rows(self):
- with self.ui_test.load_file(get_url_for_data_file("hiddenRow.ods")) as calc_doc:
- xCalcDoc = self.xUITest.getTopFocusWindow()
+ with self.ui_test.load_file(get_url_for_data_file("hiddenRow.ods")):
self.xUITest.executeCommand(".uno:SelectAll")
self.xUITest.executeCommand(".uno:Copy")
with self.ui_test.load_file(get_url_for_data_file("tableToText.odt")) as writer_doc:
- xWriterDoc = self.xUITest.getTopFocusWindow()
self.xUITest.executeCommand(".uno:Paste")
#verify (don't copy hidden cells)
self.assertEqual(writer_doc.TextTables.getCount(), 1)
@@ -33,13 +31,11 @@ class sheetToTable(UITestCase):
self.assertEqual(table.getCellByName("A2").getString(), "3")
def test_tdf138688(self):
- with self.ui_test.load_file(get_url_for_data_file("hiddenRow.ods")) as calc_doc:
- xCalcDoc = self.xUITest.getTopFocusWindow()
+ with self.ui_test.load_file(get_url_for_data_file("hiddenRow.ods")):
self.xUITest.executeCommand(".uno:SelectAll")
self.xUITest.executeCommand(".uno:Copy")
with self.ui_test.load_file(get_url_for_data_file("tableToText.odt")) as writer_doc:
- xWriterDoc = self.xUITest.getTopFocusWindow()
# set numbering in the paragraph after the table
self.xUITest.executeCommand(".uno:GoDown")
@@ -77,7 +73,6 @@ class sheetToTable(UITestCase):
with self.ui_test.load_empty_file("writer") as writer_doc:
- xWriterDoc = self.xUITest.getTopFocusWindow()
self.xUITest.executeCommand(".uno:InsertTable?Columns:short=1&Rows:short=4")
@@ -106,7 +101,6 @@ class sheetToTable(UITestCase):
self.xUITest.executeCommand(".uno:Copy")
with self.ui_test.load_empty_file("writer") as writer_doc:
- xWriterDoc = self.xUITest.getTopFocusWindow()
self.xUITest.executeCommand(".uno:Paste")