tst_combobox: skip indicator check for the native styles
The ComboBox::test_defaults() test checks that there is an indictor present in the style. But for the native styles, the indicator is drawn as a part of the background. So skip the failing test when running on mac and windows. Task-number: QTBUG-95678 Pick-to: 6.2 Change-Id: I35f1900044bad1a519d9883b2061810bff8eb7a8 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
This commit is contained in:
parent
6d0702b4d7
commit
8ce979557c
|
@ -155,7 +155,11 @@ TestCase {
|
|||
compare(control.highlightedIndex, -1)
|
||||
compare(control.currentText, "")
|
||||
verify(control.delegate)
|
||||
verify(control.indicator)
|
||||
if (Qt.platform.pluginName !== "cocoa" && Qt.platform.pluginName !== "windows") {
|
||||
// Only the non-native styles sets an indicator delegate. The native
|
||||
// styles will instead draw the indicator as a part of the background.
|
||||
verify(control.indicator)
|
||||
}
|
||||
verify(control.popup)
|
||||
verify(control.acceptableInput)
|
||||
compare(control.inputMethodHints, Qt.ImhNoPredictiveText)
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
# QTBUG-95678
|
||||
# Blacklisted in order to get the native macOS style under
|
||||
# regression control
|
||||
[ComboBox::test_defaults]
|
||||
*
|
||||
[ComboBox::test_font]
|
||||
*
|
||||
[ComboBox::test_implicitContentWidthPolicy_WidestText]
|
||||
|
|
Loading…
Reference in New Issue