aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/shared/visualtestutil.h
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2017-08-09 12:51:40 +0200
committerMitch Curtis <mitch.curtis@qt.io>2017-08-09 15:18:57 +0000
commit068379a66f88b34545530a018c0826c2c09a100a (patch)
treed2ce6f6b4aa89ab1aabb2103256dfc0aab62cb59 /tests/auto/shared/visualtestutil.h
parent06d8845892f6b4b73418bd5ff9552eba71dbfa38 (diff)
Fix failing tests in tst_menu and tst_qquickmenubar
As mentioned in the bug report for the failing tst_qquickmenubar test, the window is sometimes opened at the bottom right corner of the screen on the Ubuntu CI machines. However, even after centering the window on the screen, the old setPos() call still caused the tests to fail. So, we position the cursor past a different corner of the window, which works.. though I don't know why. Task-number: QTBUG-62363 Task-number: QTBUG-62383 Change-Id: I3649230002eaac5a6391daff24427e6f9f58cfa5 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/shared/visualtestutil.h')
-rw-r--r--tests/auto/shared/visualtestutil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/shared/visualtestutil.h b/tests/auto/shared/visualtestutil.h
index bcf45660..a6b52fef 100644
--- a/tests/auto/shared/visualtestutil.h
+++ b/tests/auto/shared/visualtestutil.h
@@ -54,6 +54,8 @@ namespace QQuickVisualTestUtil
bool delegateVisible(QQuickItem *item);
+ void centerOnScreen(QQuickWindow *window);
+
void moveMouseAway(QQuickWindow *window);
/*