summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Weimer <bernd.weimer@qt.io>2023-12-07 11:53:54 +0100
committerBernd Weimer <bernd.weimer@qt.io>2024-01-09 11:59:11 +0100
commit4ce172ba98978b0a07663eaa58521d210aa5202f (patch)
treefc2482fbdccbb4200becd5a4823601fccaba3345
parent0548a71434a4203e47ee4f61a4f9a22120cbd967 (diff)
Enable keyinput test again
Initial focus needed to be forced on Windows and macOS. Change-Id: I7249f45a82e3df2f40ffee6b2c3025c28d5ac4fd Pick-to: 6.7 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
-rw-r--r--tests/auto/qml/keyinput/tst_keyinput.qml4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/qml/keyinput/tst_keyinput.qml b/tests/auto/qml/keyinput/tst_keyinput.qml
index dbcc2e25..e704ba39 100644
--- a/tests/auto/qml/keyinput/tst_keyinput.qml
+++ b/tests/auto/qml/keyinput/tst_keyinput.qml
@@ -75,7 +75,6 @@ TestCase {
WindowChrome {
id: leftWin
x: 3; y: 3
- focus: true
}
WindowChrome {
@@ -138,8 +137,6 @@ TestCase {
}
function test_moveFocus() {
- skip("Not working ATM: ASSERT on Linux/multi-process and missing signal on macOS/single-process")
-
if (root.Window.window.flags & Qt.WindowDoesNotAcceptFocus)
skip("Test can only be run without AM_BACKGROUND_TEST set, since it requires input focus");
@@ -150,6 +147,7 @@ TestCase {
return leftWin.winSurface.window != null && rightWin.winSurface.window != null
}, spyTimeout);
+ leftWin.forceActiveFocus();
wait(100);
//console.info("Inject Up");