sc/qa/uitest/calc_tests/formatCells.py |   25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

New commits:
commit 3c04c2ec10c3486c33dea6588d1eed9de09ee52d
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Mon Feb 24 13:26:40 2020 +0100
Commit:     Xisco Faulí <xiscofa...@libreoffice.org>
CommitDate: Mon Feb 24 16:40:19 2020 +0100

    tdf#130762: Add uitest
    
    Change-Id: Iff2cedfec6e17a46f160797d32fd1a565abfe0f0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89342
    Tested-by: Jenkins
    Reviewed-by: Xisco Faulí <xiscofa...@libreoffice.org>

diff --git a/sc/qa/uitest/calc_tests/formatCells.py 
b/sc/qa/uitest/calc_tests/formatCells.py
index 4ebcfddddf4a..5d350cf2518a 100644
--- a/sc/qa/uitest/calc_tests/formatCells.py
+++ b/sc/qa/uitest/calc_tests/formatCells.py
@@ -414,4 +414,29 @@ class formatCell(UITestCase):
         self.ui_test.close_dialog_through_button(xOKBtn)
 
         self.ui_test.close_doc()
+
+    def test_tdf130762(self):
+        calc_doc = self.ui_test.create_doc_in_start_center("calc")
+        xCalcDoc = self.xUITest.getTopFocusWindow()
+        gridwin = xCalcDoc.getChild("grid_window")
+        document = self.ui_test.get_component()
+        #select cell A1
+        gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A1"}))
+        #format - cell
+        self.ui_test.execute_dialog_through_command(".uno:FormatCellDialog")
+        xDialog = self.xUITest.getTopFocusWindow()
+        xTabs = xDialog.getChild("tabcontrol")
+        select_pos(xTabs, "3")  #tab Alignment
+        xspinDegrees = xDialog.getChild("spinDegrees")
+        self.assertEqual(get_state_as_dict(xspinDegrees)["Text"].replace('°', 
''), "0")
+        xspinDegrees.executeAction("DOWN", tuple())
+        self.assertEqual(get_state_as_dict(xspinDegrees)["Text"].replace('°', 
''), "355")
+        xspinDegrees.executeAction("UP", tuple())
+        self.assertEqual(get_state_as_dict(xspinDegrees)["Text"].replace('°', 
''), "0")
+
+        xOKBtn = xDialog.getChild("ok")
+        self.ui_test.close_dialog_through_button(xOKBtn)
+
+        self.ui_test.close_doc()
+
 # vim: set shiftwidth=4 softtabstop=4 expandtab:
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to