Merge lp:~aacid/unity8/waitForRenderingNoCrash
commit5322e62592d2b283d89a94a2dcbf3653f4175ce5
authorAlbert Astals <albert.astals@canonical.com>
dateWed 7 Jan 2015, 16:12 (12 years ago)
parentaa1f0ff6987dad
tests/utils/modules/Unity/Test/UnityTestCase.qml+9
@@ -381,4 +381,13 @@ TestCase {
381381 }
382382 }
383383 }
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+
384393}