Kaydet (Commit) d66e2841 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

uitest: add some initial math ui tests

Change-Id: Iad02a40b683d7b3bbbad0214c82ad4b5b6878ea9
üst 72dd364f
# -*- Mode: python; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
from uitest.uihelper.common import get_state_as_dict
from libreoffice.uno.propertyvalue import mkPropertyValues
from uitest.framework import UITestCase
import time
import unittest
class SimpleMathTest(UITestCase):
def test_start_math(self):
self.ui_test.create_doc_in_start_center("math")
xMathDoc = self.xUITest.getTopFocusWindow()
self.ui_test.close_doc()
def test_docking_window_listbox(self):
self.ui_test.create_doc_in_start_center("math")
xMathDoc = self.xUITest.getTopFocusWindow()
xList = xMathDoc.getChild("listbox")
state = get_state_as_dict(xList)
self.assertEqual(state["SelectEntryText"], "Unary/Binary Operators")
xList.executeAction("SELECT", mkPropertyValues({"POS": "1"}))
state = get_state_as_dict(xList)
self.assertEqual(state["SelectEntryText"], "Relations")
self.ui_test.close_doc()
# vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment