From 3e5d9532391549cc115f4cc6a824401acd2e8600 Mon Sep 17 00:00:00 2001 From: Charles Yin Date: Tue, 12 Jun 2012 15:38:52 +1000 Subject: Add waitForRendering() function for qmltest Change-Id: I6357412d84fdb4a8b6bd8603baba7d10a2bcc245 Reviewed-by: Yunqiao Yin --- tests/auto/qmltest/pixel/tst_pixel.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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); -- cgit v1.2.3