Check that window has been painted

The test is preventing us to take RHEL 7.1 in the CI for Qt 5.7.
Changed the paintEvent() test to be less strict about the paintCount.

Task-number: QTBUG-51809
Change-Id: I84f797442e38c66dc23862e92eda6db08bcac368
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
Milla Pohjanheimo 2016-03-29 07:05:30 +03:00
parent 3cbe25c9a6
commit 342290888f

View File

@ -1296,7 +1296,7 @@ void tst_QGraphicsProxyWidget::paintEvent()
proxy.paintCount = 0; proxy.paintCount = 0;
w->update(); w->update();
QTRY_COMPARE(proxy.paintCount, 1); //the widget should have been painted now QTRY_VERIFY(proxy.paintCount >= 1); //the widget should have been painted now
} }