diff options
Diffstat (limited to 'tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp')
-rw-r--r-- | tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp b/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp index 9d76741..491330b 100644 --- a/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp +++ b/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp @@ -850,6 +850,8 @@ void tst_QStyleSheetStyle::hoverColors() QTest::mouseMove ( widget, QPoint(5,5)); QTest::qWait(60); + QVERIFY(widget->testAttribute(Qt::WA_UnderMouse)); + QImage image(frame.width(), frame.height(), QImage::Format_ARGB32); frame.render(&image); @@ -877,6 +879,8 @@ void tst_QStyleSheetStyle::hoverColors() QTest::mouseMove (widget, QPoint(5,5)); QTest::qWait(60); + QVERIFY(widget->testAttribute(Qt::WA_UnderMouse)); + frame.render(&image); QVERIFY2(testForColors(image, QColor(0xe8, 0xff, 0x66)), |