summaryrefslogtreecommitdiff
path: root/sc/qa/uitest
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-02-24 13:26:40 +0100
committerXisco Faulí <xiscofauli@libreoffice.org>2020-02-24 16:40:19 +0100
commit3c04c2ec10c3486c33dea6588d1eed9de09ee52d (patch)
tree3befe6e7c8762fb4669118a6c33893b4ffc85baf /sc/qa/uitest
parent7b2da820f3d8a2e42c30db0897faeb690f3b5f22 (diff)
tdf#130762: Add uitest
Change-Id: Iff2cedfec6e17a46f160797d32fd1a565abfe0f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89342 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/qa/uitest')
-rw-r--r--sc/qa/uitest/calc_tests/formatCells.py25
1 files changed, 25 insertions, 0 deletions
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: