on xenial help sign in
Merge lp:~aacid/unity8/waitForRenderingNoCrash
5322e62Albert Astals
tests/utils/modules/Unity/Test/UnityTestCase.qml+9
@@ -381,4 +381,13 @@ TestCase {
381 }
381 }
382 }
382 }
383 }
383 }
384+
385+ function waitForRendering(item, timeout) {
386+ if (timeout === undefined)
387+ timeout = 5000
388+ if (!item)
389+ qtest_fail("No item given to waitForRendering", 1)
390+ return qtest_results.waitForRendering(item, timeout)
391+ }
392+
384}
393}