diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-09-11 12:04:03 (GMT) |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-09-11 12:06:19 (GMT) |
commit | 203721da4d1fe32a92854ca8edd9e47339832e30 (patch) | |
tree | e7d06959b8310970dbe22d545a6c04bce6539918 /tests/auto/qstylesheetstyle | |
parent | 7dab66be83319cf7cd6cf48edc9ed19e154139bc (diff) | |
download | Qt-203721da4d1fe32a92854ca8edd9e47339832e30.zip Qt-203721da4d1fe32a92854ca8edd9e47339832e30.tar.gz Qt-203721da4d1fe32a92854ca8edd9e47339832e30.tar.bz2 |
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.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)), |