diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-12-22 03:58:26 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-12-24 17:12:38 +0000 |
commit | 85a1dda8ef9d5970adf881dca2bf9d1a652f7245 (patch) | |
tree | b322ef90f81127f1c96e06dc76459778ed1ba99f /uitest/math_tests | |
parent | 57e785e1cf52e422ac60cb259a2f53b696d3c4cc (diff) |
uitest: write a helper method for selecting based on position
Change-Id: Ia7c4450f83a5a7cebd9d518c9ccac1ce07045570
Reviewed-on: https://gerrit.libreoffice.org/32407
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'uitest/math_tests')
-rw-r--r-- | uitest/math_tests/start.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/uitest/math_tests/start.py b/uitest/math_tests/start.py index 2842c1f1ef71..425cb9679f57 100644 --- a/uitest/math_tests/start.py +++ b/uitest/math_tests/start.py @@ -10,7 +10,7 @@ from uitest.uihelper.common import get_state_as_dict from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.framework import UITestCase -from uitest.uihelper.common import type_text +from uitest.uihelper.common import type_text, select_pos from uitest.debug import sleep import unittest @@ -34,7 +34,7 @@ class SimpleMathTest(UITestCase): xList = xMathDoc.getChild("listbox") state = get_state_as_dict(xList) self.assertEqual(state["SelectEntryText"], "Unary/Binary Operators") - xList.executeAction("SELECT", mkPropertyValues({"POS": "1"})) + select_pos(xList, "1") state = get_state_as_dict(xList) self.assertEqual(state["SelectEntryText"], "Relations") @@ -72,7 +72,7 @@ class SimpleMathTest(UITestCase): xList = xMathDoc.getChild("listbox") state = get_state_as_dict(xList) self.assertEqual(state["SelectEntryText"], "Unary/Binary Operators") - xList.executeAction("SELECT", mkPropertyValues({"POS": "1"})) + select_pos(xList, "1") xMathSelector = xMathDoc.getChild("element_selector") |