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-05 07:55:27 +0200
commit26628a8b554367d55ebeb2a9cf466780f738aed0 (patch)
tree73331456c98f65f4d62589eb6fa8e50860ba083b /uitest
parentaddd7c3d63f8d6c6c45c91436170f37a3e3b2609 (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> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135421 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.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 215d97b68bdb..142d6bf036cb 100644
--- a/uitest/math_tests/start.py
+++ b/uitest/math_tests/start.py
@@ -29,7 +29,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"):
@@ -42,10 +41,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")