summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-10-19 12:53:13 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-21 01:20:29 +0200
commit27f9f136f7e39b5d612bc02f7ff8778ab424c07d (patch)
tree3c72358e3d1e42fbf0c386365e76db259e180bd7 /tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp
parent016cd01846539404a0eff1e3823fa2206fe2c9a9 (diff)
Remove SkipMode parameter from QSKIP calls.
The previous commit removed SkipMode from the testlib APi. This commit removes the parameter from all calls to QSKIP. Task-number: QTBUG-21851, QTBUG-21652 Change-Id: I21c0ee6731c1bc6ac6d962590d9b31d7459dfbc5 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp')
-rw-r--r--tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp22
1 files changed, 9 insertions, 13 deletions
diff --git a/tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp b/tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp
index c5591c48ab..2e5ddb4695 100644
--- a/tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp
+++ b/tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp
@@ -777,9 +777,8 @@ void tst_QStyleSheetStyle::focusColors()
QImage image(frame.width(), frame.height(), QImage::Format_ARGB32);
frame.render(&image);
- if (image.depth() < 24) {
- QSKIP("Test doesn't support color depth < 24", SkipAll);
- }
+ if (image.depth() < 24)
+ QSKIP("Test doesn't support color depth < 24");
QVERIFY2(testForColors(image, QColor(0xe8, 0xff, 0x66)),
(QString::fromLatin1(widget->metaObject()->className())
@@ -798,7 +797,7 @@ void tst_QStyleSheetStyle::focusColors()
void tst_QStyleSheetStyle::hoverColors()
{
if (!PlatformQuirks::haveMouseCursor())
- QSKIP("No mouse Cursor on this platform",SkipAll);
+ QSKIP("No mouse Cursor on this platform");
QList<QWidget *> widgets;
widgets << new QPushButton("TESTING");
widgets << new QLineEdit("TESTING");
@@ -937,9 +936,8 @@ void tst_QStyleSheetStyle::background()
QImage image(widget->width(), widget->height(), QImage::Format_ARGB32);
widget->render(&image);
- if (image.depth() < 24) {
- QSKIP("Test doesn't support color depth < 24", SkipAll);
- }
+ if (image.depth() < 24)
+ QSKIP("Test doesn't support color depth < 24");
QVERIFY2(testForColors(image, QColor(0xe8, 0xff, 0x66)),
(QString::fromLatin1(widget->metaObject()->className())
@@ -1470,9 +1468,8 @@ void tst_QStyleSheetStyle::complexWidgetFocus()
QImage image(frame.width(), frame.height(), QImage::Format_ARGB32);
frame.render(&image);
- if (image.depth() < 24) {
- QSKIP("Test doesn't support color depth < 24", SkipAll);
- }
+ if (image.depth() < 24)
+ QSKIP("Test doesn't support color depth < 24");
QVERIFY2(testForColors(image, QColor(0xff, 0x00, 0x84)),
(QString::fromLatin1(widget->metaObject()->className())
@@ -1547,9 +1544,8 @@ void tst_QStyleSheetStyle::task232085_spinBoxLineEditBg()
QImage image(frame.width(), frame.height(), QImage::Format_ARGB32);
frame.render(&image);
- if (image.depth() < 24) {
- QSKIP("Test doesn't support color depth < 24", SkipAll);
- }
+ if (image.depth() < 24)
+ QSKIP("Test doesn't support color depth < 24");
QVERIFY2(testForColors(image, QColor(0xe8, 0xff, 0x66)),
(QString::fromLatin1(spinbox->metaObject()->className())