diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-02-24 13:26:40 +0100 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-02-24 16:40:19 +0100 |
commit | 3c04c2ec10c3486c33dea6588d1eed9de09ee52d (patch) | |
tree | 3befe6e7c8762fb4669118a6c33893b4ffc85baf /sc/qa/uitest | |
parent | 7b2da820f3d8a2e42c30db0897faeb690f3b5f22 (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.py | 25 |
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: |