aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2020-09-04 16:53:42 +0200
committerMitch Curtis <mitch.curtis@qt.io>2020-09-04 16:59:15 +0200
commitaad71282b241402be356531804fede4b43ee5659 (patch)
treeba632cee2aee62723c5309c4f1b69c044cfacada /tests/auto
parent2a7b8930f447aa2100e58abf6ebf208064ec0f2f (diff)
parentb1880194b435da6384aacf84d1a4df4c14e071ee (diff)
Merge remote-tracking branch 'nativestyle' into dev
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/controls/data/tst_switch.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_switch.qml b/tests/auto/controls/data/tst_switch.qml
index 876af1ba..9050964f 100644
--- a/tests/auto/controls/data/tst_switch.qml
+++ b/tests/auto/controls/data/tst_switch.qml
@@ -606,6 +606,7 @@ TestCase {
verify(!control.activeFocus)
mouseClick(control.indicator)
- verify(control.activeFocus)
+ // should not get activeFocus on mouseClick on macOS
+ compare(control.activeFocus, Qt.platform.os !== "osx" && Qt.platform.os !== "macos")
}
}