[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - sd/qa

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Mon Nov 9 13:06:12 UTC 2020


 sd/qa/uitest/impress_tests/tdf91762.py |   13 +++++++++++++
 1 file changed, 13 insertions(+)

New commits:
commit 6dee385e10c859928e5d6406d002983529eff9f9
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Thu Nov 5 14:30:37 2020 +0100
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Mon Nov 9 14:05:39 2020 +0100

    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 at libreoffice.org>
    (cherry picked from commit ac6df04b5c5a7c227fec3b8897c79be5e99cbe01)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105461

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:


More information about the Libreoffice-commits mailing list