aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmltest
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2012-06-12 15:38:52 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-25 04:09:33 +0200
commit3e5d9532391549cc115f4cc6a824401acd2e8600 (patch)
tree7aae2f23dedff8471258336eb3deedf27cc7373a /tests/auto/qmltest
parentf22730a3390242c45fc4c8826b301606a7a7e1cb (diff)
Add waitForRendering() function for qmltest
Change-Id: I6357412d84fdb4a8b6bd8603baba7d10a2bcc245 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Diffstat (limited to 'tests/auto/qmltest')
-rw-r--r--tests/auto/qmltest/pixel/tst_pixel.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qmltest/pixel/tst_pixel.qml b/tests/auto/qmltest/pixel/tst_pixel.qml
index f2a9d5fdb8..dbcca4a3f5 100644
--- a/tests/auto/qmltest/pixel/tst_pixel.qml
+++ b/tests/auto/qmltest/pixel/tst_pixel.qml
@@ -64,7 +64,7 @@ Rectangle {
fuzzyCompare(img.pixel(1,1), "#FF0201", 2);
rect.color = "blue";
- wait(200);
+ waitForRendering(rect);
img = grabImage(rect);
compare(img.pixel(20, 20), Qt.rgba(0, 0, 255, 255));
compare(img.red(1,1), 0);