diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-11-05 14:30:37 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-11-05 19:15:45 +0100 |
commit | ac6df04b5c5a7c227fec3b8897c79be5e99cbe01 (patch) | |
tree | 957e188ebf3cc422f50627ed3dd7876f7208c4ef /sd/qa | |
parent | 8555a051031d951a4c03704f6ed6e2037dd84300 (diff) |
tdf#138011: sd: Add UItest
Change-Id: I121e8951807404c9aead36f199340a3b10031595
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105371
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sd/qa')
-rw-r--r-- | sd/qa/uitest/impress_tests/tdf91762.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sd/qa/uitest/impress_tests/tdf91762.py b/sd/qa/uitest/impress_tests/tdf91762.py index 36ac3566ee10..66e650b0bb2a 100644 --- a/sd/qa/uitest/impress_tests/tdf91762.py +++ b/sd/qa/uitest/impress_tests/tdf91762.py @@ -6,6 +6,7 @@ from uitest.framework import UITestCase from uitest.uihelper.common import get_state_as_dict +from libreoffice.uno.propertyvalue import mkPropertyValues class tdf91762(UITestCase): @@ -25,12 +26,24 @@ class tdf91762(UITestCase): self.ui_test.close_dialog_through_button(xOkBtn) document = self.ui_test.get_component() + self.assertEqual(1929, document.DrawPages[0].getByIndex(1).BoundRect.Height) self.assertEqual(25198, document.DrawPages[0].getByIndex(1).Size.Width) self.assertEqual(1923, document.DrawPages[0].getByIndex(1).Size.Height) self.assertEqual(1400, document.DrawPages[0].getByIndex(1).Position.X) self.assertEqual(3685, document.DrawPages[0].getByIndex(1).Position.Y) + #The table is selected, use esc to start editing + xDoc = self.xUITest.getTopFocusWindow() + xEdit = xDoc.getChild("impress_win") + for i in range(5): + xEdit.executeAction("TYPE", mkPropertyValues({"TEXT":"test"})) + xEdit.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"})) + + # tdf#138011: Without the fix in place, this test would have failed with + # AssertionError: 5504 != 3559 + self.assertEqual(5504, document.DrawPages[0].getByIndex(1).BoundRect.Height) + self.ui_test.close_doc() # vim: set shiftwidth=4 softtabstop=4 expandtab: |