sw/qa/uitest/writer_tests/trackedChanges.py | 2 +- sw/qa/uitest/writer_tests2/deleteAllComments.py | 4 ++-- sw/qa/uitest/writer_tests3/sort.py | 4 ++-- sw/qa/uitest/writer_tests3/tdf79236.py | 2 +- sw/qa/uitest/writer_tests7/tdf133348.py | 2 +- sw/qa/uitest/writer_tests7/tdf90401.py | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-)
New commits: commit 2925063f0bb85c7e4d1d9a956365fe87a91dab22 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Mon Jan 10 18:49:39 2022 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon Jan 10 21:10:56 2022 +0100 uitest: executeCommand doesn't return anything Change-Id: Ie59ed6926c42b96471f3b74a9547f7f1f2cd175a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128259 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/qa/uitest/writer_tests/trackedChanges.py b/sw/qa/uitest/writer_tests/trackedChanges.py index 96cd3a72ca87..eb6d5a9f6db6 100644 --- a/sw/qa/uitest/writer_tests/trackedChanges.py +++ b/sw/qa/uitest/writer_tests/trackedChanges.py @@ -23,7 +23,7 @@ class trackedchanges(UITestCase): self.xUITest.executeCommand(".uno:TrackChanges") - selection = self.xUITest.executeCommand(".uno:SelectAll") #select whole text + self.xUITest.executeCommand(".uno:SelectAll") #select whole text self.xUITest.executeCommand(".uno:Cut") #cut text with self.ui_test.execute_modeless_dialog_through_command(".uno:AcceptTrackedChanges", close_button="close"): diff --git a/sw/qa/uitest/writer_tests2/deleteAllComments.py b/sw/qa/uitest/writer_tests2/deleteAllComments.py index bb723af2e0a5..e655a2f8a23d 100644 --- a/sw/qa/uitest/writer_tests2/deleteAllComments.py +++ b/sw/qa/uitest/writer_tests2/deleteAllComments.py @@ -23,7 +23,7 @@ class DeleteAllComments(UITestCase): type_text(xWriterEdit, "Test LibreOffice") - selection = self.xUITest.executeCommand(".uno:SelectAll") + self.xUITest.executeCommand(".uno:SelectAll") self.xUITest.executeCommand(".uno:InsertAnnotation") cursor = document.getCurrentController().getViewCursor() type_text(xWriterEdit, "EEEEE") @@ -42,7 +42,7 @@ class DeleteAllComments(UITestCase): type_text(xWriterEdit, "foo") - selection = self.xUITest.executeCommand(".uno:SelectAll") + self.xUITest.executeCommand(".uno:SelectAll") self.xUITest.executeCommand(".uno:InsertAnnotation") self.xUITest.executeCommand(".uno:TrackChanges") self.xUITest.executeCommand(".uno:DeleteAllNotes") diff --git a/sw/qa/uitest/writer_tests3/sort.py b/sw/qa/uitest/writer_tests3/sort.py index 3e5e779004d8..aafe7a00c6a5 100644 --- a/sw/qa/uitest/writer_tests3/sort.py +++ b/sw/qa/uitest/writer_tests3/sort.py @@ -25,7 +25,7 @@ class WriterSort(UITestCase): xWriterEdit.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"})) type_text(xWriterEdit, "v") - selection = self.xUITest.executeCommand(".uno:SelectAll") #select whole text + self.xUITest.executeCommand(".uno:SelectAll") #select whole text #Tools - Sort with self.ui_test.execute_dialog_through_command(".uno:SortDialog") as xDialog: xDown = xDialog.getChild("down1") @@ -43,7 +43,7 @@ class WriterSort(UITestCase): xWriterEdit.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"})) type_text(xWriterEdit, "2;8;3") - selection = self.xUITest.executeCommand(".uno:SelectAll") #select whole text + self.xUITest.executeCommand(".uno:SelectAll") #select whole text #Tools - Sort with self.ui_test.execute_dialog_through_command(".uno:SortDialog") as xDialog: xDown = xDialog.getChild("down1") diff --git a/sw/qa/uitest/writer_tests3/tdf79236.py b/sw/qa/uitest/writer_tests3/tdf79236.py index 23b53b855563..c8e857188c9c 100644 --- a/sw/qa/uitest/writer_tests3/tdf79236.py +++ b/sw/qa/uitest/writer_tests3/tdf79236.py @@ -22,7 +22,7 @@ class tdf79236(UITestCase): type_text(xWriterEdit, "Test for tdf79236") - selection = self.xUITest.executeCommand(".uno:SelectAll") + self.xUITest.executeCommand(".uno:SelectAll") self.assertEqual(document.CurrentSelection.getByIndex(0).ParaLeftMargin, 0) self.assertEqual(document.CurrentSelection.getByIndex(0).ParaRightMargin, 0) diff --git a/sw/qa/uitest/writer_tests7/tdf133348.py b/sw/qa/uitest/writer_tests7/tdf133348.py index e80b8230cf30..8f8ff94cf3b5 100644 --- a/sw/qa/uitest/writer_tests7/tdf133348.py +++ b/sw/qa/uitest/writer_tests7/tdf133348.py @@ -18,7 +18,7 @@ class tdf133348(UITestCase): xWriterEdit = xWriterDoc.getChild("writer_edit") - selection = self.xUITest.executeCommand(".uno:SelectAll") + self.xUITest.executeCommand(".uno:SelectAll") xArgs = mkPropertyValues({"Text": "C1"}) self.xUITest.executeCommandWithParameters(".uno:InsertAnnotation", xArgs) diff --git a/sw/qa/uitest/writer_tests7/tdf90401.py b/sw/qa/uitest/writer_tests7/tdf90401.py index 7dde8a02bdb4..3cab231f72b2 100644 --- a/sw/qa/uitest/writer_tests7/tdf90401.py +++ b/sw/qa/uitest/writer_tests7/tdf90401.py @@ -31,7 +31,7 @@ class tdf90401(UITestCase): xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild('writer_edit') - selection = self.xUITest.executeCommand('.uno:SelectAll') + self.xUITest.executeCommand('.uno:SelectAll') self.xUITest.executeCommand('.uno:InsertAnnotation') # enable remove personal info security option @@ -97,7 +97,7 @@ class tdf90401(UITestCase): xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild('writer_edit') - selection = self.xUITest.executeCommand('.uno:SelectAll') + self.xUITest.executeCommand('.uno:SelectAll') self.xUITest.executeCommand('.uno:InsertAnnotation') # enable remove personal info security option