summaryrefslogtreecommitdiffstats
path: root/tests/auto/qstylesheetstyle
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2009-09-11 14:04:03 +0200
committerPaul Olav Tvete <paul.tvete@nokia.com>2009-09-11 14:06:19 +0200
commit203721da4d1fe32a92854ca8edd9e47339832e30 (patch)
treee7d06959b8310970dbe22d545a6c04bce6539918 /tests/auto/qstylesheetstyle
parent7dab66be83319cf7cd6cf48edc9ed19e154139bc (diff)
Better failure message when it fails
Some platforms do not recalculate the Qt::WA_UnderMouse attribute when a widget is shown underneath the mouse. Reviewed-by: Olivier
Diffstat (limited to 'tests/auto/qstylesheetstyle')
-rw-r--r--tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp b/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp
index 9d767416d2..491330b872 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)),