aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmltest
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@sletta.org>2014-10-02 12:05:14 +0200
committerGunnar Sletta <gunnar@sletta.org>2014-10-09 15:47:35 +0200
commit918dbea80119a5ded09909f8261e86140ceb6f7c (patch)
tree538aa9a29c206c01be693bc293be46ffd6210261 /tests/auto/qmltest
parent0afa52f7ad93dec7558ecc9793d2115a9eac99cc (diff)
Compare doesn't work for colors, so compare the channels explcitily.
Change-Id: I7a21328700c85b5b79dbb4342817e28833dece70 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'tests/auto/qmltest')
-rw-r--r--tests/auto/qmltest/shadersource/tst_DynamicallyCreated.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qmltest/shadersource/tst_DynamicallyCreated.qml b/tests/auto/qmltest/shadersource/tst_DynamicallyCreated.qml
index dad6ff84b9..bbfa08f443 100644
--- a/tests/auto/qmltest/shadersource/tst_DynamicallyCreated.qml
+++ b/tests/auto/qmltest/shadersource/tst_DynamicallyCreated.qml
@@ -70,7 +70,9 @@ Item {
name: "shadersource-dynamic-sourceobject"
function test_endresult() {
var image = grabImage(shaderSource);
- compare(image.pixel(0, 0), Qt.rgba(1, 0, 0, 1));
+ compare(image.red(0,0), 255);
+ compare(image.green(0,0), 0);
+ compare(image.blue(0,0), 0);
}
}
}