summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-11-05 14:30:37 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2020-11-09 14:05:39 +0100
commit6dee385e10c859928e5d6406d002983529eff9f9 (patch)
tree510bf68a3b42efad2b989e2b3f98c35a87aa095f /sd
parente259c659c4d3e27524c1aa76d61c7e4735e764c7 (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> (cherry picked from commit ac6df04b5c5a7c227fec3b8897c79be5e99cbe01) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105461
Diffstat (limited to 'sd')
-rw-r--r--sd/qa/uitest/impress_tests/tdf91762.py13
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: