diff options
author | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-09-15 10:14:03 (GMT) |
---|---|---|
committer | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-09-15 12:27:57 (GMT) |
commit | d9597782202b2be117874330ceee95040c7365cb (patch) | |
tree | dc30179ad0b4d4bb96811be6b6c6d6ed6e51d32a /tests/auto | |
parent | afb6c4935dc6a7be0f9de092003477692559815c (diff) | |
download | Qt-d9597782202b2be117874330ceee95040c7365cb.zip Qt-d9597782202b2be117874330ceee95040c7365cb.tar.gz Qt-d9597782202b2be117874330ceee95040c7365cb.tar.bz2 |
Don't do pixel tests in QGraphicsEffect on other than 32-bit display.
Reviewed-by: Paul Olav Tvete
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp b/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp index d5205cd..ba3783b 100644 --- a/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp +++ b/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp @@ -41,6 +41,7 @@ #include <QtTest/QtTest> +#include <QtGui/qdesktopwidget.h> #include <QtGui/qgraphicseffect.h> #include <QtGui/qgraphicsview.h> #include <QtGui/qgraphicsscene.h> @@ -369,6 +370,11 @@ void tst_QGraphicsEffect::opacity() void tst_QGraphicsEffect::grayscale() { + if (qApp->desktop()->depth() < 24) { + QSKIP("Test only works on 32 bit displays", SkipAll); + return; + } + QGraphicsScene scene(0, 0, 100, 100); QGraphicsRectItem *item = scene.addRect(0, 0, 50, 50); @@ -412,6 +418,11 @@ void tst_QGraphicsEffect::grayscale() void tst_QGraphicsEffect::colorize() { + if (qApp->desktop()->depth() < 24) { + QSKIP("Test only works on 32 bit displays", SkipAll); + return; + } + QGraphicsScene scene(0, 0, 100, 100); QGraphicsRectItem *item = scene.addRect(0, 0, 50, 50); |