diff options
author | Charles Yin <charles.yin@nokia.com> | 2012-06-12 15:38:52 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-25 04:09:33 +0200 |
commit | 3e5d9532391549cc115f4cc6a824401acd2e8600 (patch) | |
tree | 7aae2f23dedff8471258336eb3deedf27cc7373a /src/imports/testlib/TestCase.qml | |
parent | f22730a3390242c45fc4c8826b301606a7a7e1cb (diff) |
Add waitForRendering() function for qmltest
Change-Id: I6357412d84fdb4a8b6bd8603baba7d10a2bcc245
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Diffstat (limited to 'src/imports/testlib/TestCase.qml')
-rw-r--r-- | src/imports/testlib/TestCase.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/imports/testlib/TestCase.qml b/src/imports/testlib/TestCase.qml index ddd7f7030f..79c68a75a7 100644 --- a/src/imports/testlib/TestCase.qml +++ b/src/imports/testlib/TestCase.qml @@ -357,6 +357,12 @@ Item { qtest_results.wait(ms) } + function waitForRendering(item, timeout) { + if (timeout === undefined) + timeout = 5000 + return qtest_results.waitForRendering(item, timeout) + } + function sleep(ms) { qtest_results.sleep(ms) } |