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:
parent
638ac41293
commit
6949bfaa92
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user