diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-05-18 17:32:21 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-05-23 10:02:59 +0200 |
commit | 1668d38a14e10f7433eed83b21c11f5e0f2915d6 (patch) | |
tree | 464f9d16534a146ba7a85a4200a3bd22d29cdab9 /sw/qa | |
parent | 5ef3267c3a02da283ae15de3e2ad73395130a053 (diff) |
uitest: add wrapper for macro editor
Change-Id: I729c5cdbc3ba925a0c08750eba199a400babba1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94445
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/uitest/macro_tests/tdf124413.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sw/qa/uitest/macro_tests/tdf124413.py b/sw/qa/uitest/macro_tests/tdf124413.py index 926c4a2afcd9..a8ab676b77d3 100644 --- a/sw/qa/uitest/macro_tests/tdf124413.py +++ b/sw/qa/uitest/macro_tests/tdf124413.py @@ -6,6 +6,7 @@ # from uitest.framework import UITestCase +from uitest.uihelper.common import get_state_as_dict class tdf124413(UITestCase): @@ -19,6 +20,13 @@ class tdf124413(UITestCase): xEditBtn = xDialog.getChild("edit") xEditBtn.executeAction("CLICK", tuple()) + resultText = "REM ***** BASIC *****\n\nSub Main\n\nEnd Sub\n" + + xMacroWin = self.xUITest.getTopFocusWindow() + xEditWin = xMacroWin.getChild('EditorWindow') + + self.assertEqual(get_state_as_dict(xEditWin)['Text'], resultText) + self.xUITest.executeCommand(".uno:SelectAll") self.xUITest.executeCommand(".uno:Copy") self.xUITest.executeCommand(".uno:SelectAll") @@ -29,4 +37,7 @@ class tdf124413(UITestCase): self.xUITest.executeCommand(".uno:Redo") self.xUITest.executeCommand(".uno:Undo") self.xUITest.executeCommand(".uno:Redo") + + self.assertEqual(get_state_as_dict(xEditWin)['Text'], resultText) + # vim: set shiftwidth=4 softtabstop=4 expandtab: |