summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-06-01 11:20:12 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-06-02 12:51:41 +0200
commitd79c527c2a599c7821d27cf03b95cb79e2abe685 (patch)
treef48c85d924086b7112b43137712de5e438556c38 /uitest
parentf6fbdb87a15f7de97e18676560eeba988fac1b67 (diff)
Use IconView in SmElementsControl
Allows to send individual images over the wire in lok case, instead of sending full canvas at every scroll operation. The control's horizontal and vertical modes (when it's docked to a vertical or a horizontal parent window side) are now identical. Some TODOs: * Re-implement a11y - that needs to be implemented on IconView level; * Make sure that sub-pixel positioning is not used when creating the elements icons (makes elements look a bit slim on Windows); * Maybe restore mouse hover indication; in non-GTK case, a call to m_xIconView->SetHoverSelection would suffice in SalInstanceIconView. Change-Id: Idbc35f4e38e2b49fd0848a96da557fa2c1a1f6e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134761 Tested-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'uitest')
-rw-r--r--uitest/math_tests/start.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/uitest/math_tests/start.py b/uitest/math_tests/start.py
index a7e5ac6fdccd..fc298fc6eb0d 100644
--- a/uitest/math_tests/start.py
+++ b/uitest/math_tests/start.py
@@ -43,7 +43,6 @@ class SimpleMathTest(UITestCase):
self.assertEqual("E=mc^2", get_state_as_dict(xEditView)["Text"])
- @unittest.skipIf(platform.system() == "Windows", "on windows the f4 does not always work")
def test_complete_math(self):
with self.ui_test.create_doc_in_start_center("math"):
@@ -56,10 +55,10 @@ class SimpleMathTest(UITestCase):
state = get_state_as_dict(xList)
self.assertEqual(state["SelectEntryText"], "Relations")
- xMathSelector = xMathDoc.getChild("element_selector")
+ xMathSelector = xMathDoc.getChild("elements")
xElement = xMathSelector.getChild("1")
- xElement.executeAction("SELECT", tuple())
+ xElement.executeAction("DOUBLECLICK", tuple())
xEditView = xMathDoc.getChild("editview")
type_text(xEditView, "1")