tdf#140386: math: Add UItest
Change-Id: I7347619ce190778ca12e5bb56c23600efad3af95 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131311 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
@@ -19,6 +19,18 @@ import platform
|
|||||||
|
|
||||||
class SimpleMathTest(UITestCase):
|
class SimpleMathTest(UITestCase):
|
||||||
|
|
||||||
|
def test_math_unoCommand(self):
|
||||||
|
with self.ui_test.create_doc_in_start_center("math"):
|
||||||
|
|
||||||
|
xMathDoc = self.xUITest.getTopFocusWindow()
|
||||||
|
|
||||||
|
# tdf#140386
|
||||||
|
self.xUITest.executeCommand(".uno:InsertCommandText?Text:string=backepsilon")
|
||||||
|
|
||||||
|
xEditView = xMathDoc.getChild("editview")
|
||||||
|
|
||||||
|
self.assertEqual("backepsilon", get_state_as_dict(xEditView)["Text"])
|
||||||
|
|
||||||
def test_math_edit(self):
|
def test_math_edit(self):
|
||||||
with self.ui_test.create_doc_in_start_center("math"):
|
with self.ui_test.create_doc_in_start_center("math"):
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user