diff options
author | Albert Astals Cid <albert.astals@canonical.com> | 2015-01-07 16:17:52 +0100 |
---|---|---|
committer | Albert Astals Cid <albert.astals@canonical.com> | 2015-01-08 10:55:40 +0100 |
commit | bf10bf0331cb3d26e7f5f0bc9333acea1077273e (patch) | |
tree | f09142dbb05479d49fd3e1732489724c278e4bed /src/imports/testlib/TestCase.qml | |
parent | c3b6a6413636a17a74e777e65d271954392867ca (diff) |
Make waitForRendering without item fail instead of crash
Change-Id: Icd276ed19087c2a1cde8c626347c696efb21ceb3
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/imports/testlib/TestCase.qml')
-rw-r--r-- | src/imports/testlib/TestCase.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/testlib/TestCase.qml b/src/imports/testlib/TestCase.qml index 160e0bdb62..5366748082 100644 --- a/src/imports/testlib/TestCase.qml +++ b/src/imports/testlib/TestCase.qml @@ -846,6 +846,8 @@ Item { function waitForRendering(item, timeout) { if (timeout === undefined) timeout = 5000 + if (!item) + qtest_fail("No item given to waitForRendering", 1) return qtest_results.waitForRendering(item, timeout) } |