sc/qa/uitest/chart/create_chart.py |  119 -------------------------------------
 sc/qa/uitest/chart/edit_chart.py   |   63 -------------------
 2 files changed, 182 deletions(-)

New commits:
commit be77181b3338ac249ca30b4f18c4d8e9e0a58da3
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Thu Mar 24 20:03:42 2022 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Mar 24 22:31:09 2022 +0100

    uitest: sc: remove tests not testing anything in particular
    
    these tests were added in 2016 as a demo:
    
    - 8a9861c47b66afed9f9a22ee7f507ba99cd4162a
    "uitest: add demo for chart wizard"
    
    - fc0c5d6163e99d29498c9b8599d9bdf9a3e4ca6c
    "uitest: add demo showing how to deselect an UI object"
    
    - 559f2e233108ed5e9da305ffbf945d6ed568f7eb
    "uitest: add demo showing how to activate chart"
    
    and others.
    They just perform pretty basic actions and they have
    no asserts at all.
    After all these years, there are already other tests
    covering the same actions
    
    Change-Id: I978e28c090cf71a65db4881da96c865080ab9b6c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132088
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/qa/uitest/chart/create_chart.py 
b/sc/qa/uitest/chart/create_chart.py
deleted file mode 100644
index 1da46638c46a..000000000000
--- a/sc/qa/uitest/chart/create_chart.py
+++ /dev/null
@@ -1,119 +0,0 @@
-# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# 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/.
-#
-
-from libreoffice.uno.propertyvalue import mkPropertyValues
-
-from uitest.framework import UITestCase
-from uitest.uihelper.calc import enter_text_to_cell
-
-class CalcChartUIDemo(UITestCase):
-
-    def fill_spreadsheet(self):
-        xCalcDoc = self.xUITest.getTopFocusWindow()
-        xGridWindow = xCalcDoc.getChild("grid_window")
-
-        enter_text_to_cell(xGridWindow, "A1", "col1")
-        enter_text_to_cell(xGridWindow, "B1", "col2")
-        enter_text_to_cell(xGridWindow, "C1", "col3")
-        enter_text_to_cell(xGridWindow, "A2", "1")
-        enter_text_to_cell(xGridWindow, "B2", "3")
-        enter_text_to_cell(xGridWindow, "C2", "5")
-
-        xGridWindow.executeAction("SELECT", mkPropertyValues({"RANGE": 
"A1:C2"}))
-
-    def test_cancel_immediately(self):
-
-        with self.ui_test.create_doc_in_start_center("calc"):
-
-            self.fill_spreadsheet()
-
-            with 
self.ui_test.execute_dialog_through_command(".uno:InsertObjectChart", 
close_button="cancel"):
-                pass
-
-
-    def test_create_from_first_page(self):
-
-        with self.ui_test.create_doc_in_start_center("calc"):
-
-            self.fill_spreadsheet()
-
-            with 
self.ui_test.execute_dialog_through_command(".uno:InsertObjectChart", 
close_button="finish"):
-                pass
-
-
-    def test_create_from_second_page(self):
-
-        with self.ui_test.create_doc_in_start_center("calc"):
-
-            self.fill_spreadsheet()
-
-            with 
self.ui_test.execute_dialog_through_command(".uno:InsertObjectChart", 
close_button="finish") as xChartDlg:
-                xNextBtn = xChartDlg.getChild("next")
-                xNextBtn.executeAction("CLICK", tuple())
-
-                xDataInRows = xChartDlg.getChild("RB_DATAROWS")
-                xDataInRows.executeAction("CLICK", tuple())
-
-                xDataInCols = xChartDlg.getChild("RB_DATACOLS")
-                xDataInCols.executeAction("CLICK", tuple())
-
-
-    def test_deselect_chart(self):
-        with self.ui_test.create_doc_in_start_center("calc"):
-
-            self.fill_spreadsheet()
-
-            xCalcDoc = self.xUITest.getTopFocusWindow()
-            xGridWindow = xCalcDoc.getChild("grid_window")
-
-            with 
self.ui_test.execute_dialog_through_command(".uno:InsertObjectChart", 
close_button="finish"):
-                pass
-
-            xGridWindow.executeAction("DESELECT", mkPropertyValues({"OBJECT": 
""}))
-
-
-    def test_activate_chart(self):
-
-        with self.ui_test.create_doc_in_start_center("calc"):
-
-            self.fill_spreadsheet()
-
-            xCalcDoc = self.xUITest.getTopFocusWindow()
-            xGridWindow = xCalcDoc.getChild("grid_window")
-
-            with 
self.ui_test.execute_dialog_through_command(".uno:InsertObjectChart", 
close_button="finish"):
-                pass
-
-            xGridWindow.executeAction("DESELECT", mkPropertyValues({"OBJECT": 
""}))
-
-            xGridWindow.executeAction("SELECT", mkPropertyValues({"OBJECT": 
"Object 1"}))
-            xGridWindow.executeAction("ACTIVATE", tuple())
-
-            xGridWindow.executeAction("DESELECT", mkPropertyValues({"OBJECT": 
""}))
-
-
-    def select_chart_element(self):
-
-        with self.ui_test.create_doc_in_start_center("calc"):
-
-            self.fill_spreadsheet()
-
-            xCalcDoc = self.xUITest.getTopFocusWindow()
-            xGridWindow = xCalcDoc.getChild("grid_window")
-
-            with 
self.ui_test.execute_dialog_through_command(".uno:InsertObjectChart", 
close_button="finish"):
-                pass
-
-            xGridWindow.executeAction("DESELECT", mkPropertyValues({"OBJECT": 
""}))
-
-            xGridWindow.executeAction("SELECT", mkPropertyValues({"OBJECT": 
"Object 1"}))
-            xGridWindow.executeAction("ACTIVATE", tuple())
-
-
-# vim: set shiftwidth=4 softtabstop=4 expandtab:
diff --git a/sc/qa/uitest/chart/edit_chart.py b/sc/qa/uitest/chart/edit_chart.py
deleted file mode 100644
index 3e0692f5e440..000000000000
--- a/sc/qa/uitest/chart/edit_chart.py
+++ /dev/null
@@ -1,63 +0,0 @@
-# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# 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/.
-#
-
-from libreoffice.uno.propertyvalue import mkPropertyValues
-
-from uitest.framework import UITestCase
-from uitest.uihelper.calc import enter_text_to_cell
-
-import unittest
-
-class CalcChartEditUIDemo(UITestCase):
-
-    def fill_spreadsheet(self):
-        xCalcDoc = self.xUITest.getTopFocusWindow()
-        xGridWindow = xCalcDoc.getChild("grid_window")
-
-        enter_text_to_cell(xGridWindow, "A1", "col1")
-        enter_text_to_cell(xGridWindow, "B1", "col2")
-        enter_text_to_cell(xGridWindow, "C1", "col3")
-        enter_text_to_cell(xGridWindow, "A2", "1")
-        enter_text_to_cell(xGridWindow, "B2", "3")
-        enter_text_to_cell(xGridWindow, "C2", "5")
-
-        xGridWindow.executeAction("SELECT", mkPropertyValues({"RANGE": 
"A1:C2"}))
-
-    def test_select_secondary_axis(self):
-
-        with self.ui_test.create_doc_in_start_center("calc"):
-
-            self.fill_spreadsheet()
-
-            xCalcDoc = self.xUITest.getTopFocusWindow()
-            xGridWindow = xCalcDoc.getChild("grid_window")
-
-            with 
self.ui_test.execute_dialog_through_command(".uno:InsertObjectChart", 
close_button="finish"):
-                pass
-
-            xGridWindow.executeAction("DESELECT", mkPropertyValues({"OBJECT": 
""}))
-
-            xGridWindow.executeAction("SELECT", mkPropertyValues({"OBJECT": 
"Object 1"}))
-
-            xGridWindow.executeAction("ACTIVATE", tuple())
-
-            xChartMainTop = self.xUITest.getTopFocusWindow()
-            xChartMain = xChartMainTop.getChild("chart_window")
-
-            xSeriesObj =  xChartMain.getChild("CID/D=0:CS=0:CT=0:Series=0")
-
-            with self.ui_test.execute_dialog_through_action(xSeriesObj, 
"COMMAND", mkPropertyValues({"COMMAND": "FormatDataSeries"})) as 
xSeriesFormatDlg:
-
-                xAxis2 = xSeriesFormatDlg.getChild("RBT_OPT_AXIS_2")
-                xAxis2.executeAction("CLICK", tuple())
-
-            xGridWindow.executeAction("DESELECT", mkPropertyValues({"OBJECT": 
""}))
-
-
-# vim: set shiftwidth=4 softtabstop=4 expandtab:

Reply via email to