Skip flakey dialogs testcase on all platforms except windows

Testing the mouseMoveCount before XFAIL'ing before then testing the
mouseRelaseCount was anyway wrong.

Change-Id: I666f143ff15088562fc63f833f5785f870de6f26
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Volker Hilsheimer 2020-10-27 17:06:48 +01:00 committed by Tor Arne Vestbø
parent 638ac41293
commit 6949bfaa92

View File

@ -1498,9 +1498,8 @@ void tst_QWidget_window::mouseMoveWithPopup()
// but the release event will still be delivered to the first popup - dialogs might not get it
QCOMPARE(mouseAction(Qt::LeftButton), QEvent::MouseButtonRelease);
if (topLevel.popup->mouseMoveCount != 1
&& (QGuiApplication::platformName().startsWith(QLatin1String("xcb"), Qt::CaseInsensitive)
|| QGuiApplication::platformName().startsWith(QLatin1String("offscreen"), Qt::CaseInsensitive)))
if (topLevel.popup->mouseReleaseCount != 1
&& !QGuiApplication::platformName().startsWith(QLatin1String("windows"), Qt::CaseInsensitive))
QEXPECT_FAIL("Dialog", "Platform specific behavior", Continue);
QCOMPARE(topLevel.popup->mouseReleaseCount, 1);
}