Merge lp:~aacid/unity8/waitForRenderingNoCrash into lp:unity8

Proposed by Albert Astals Cid on 2015-01-07
Status: Merged
Approved by: Michał Sawicz on 2015-01-08
Approved revision: 1525
Merged at revision: 1530
Proposed branch: lp:~aacid/unity8/waitForRenderingNoCrash
Merge into: lp:unity8
Diff against target: 18 lines (+10/-0)
1 file modified
tests/utils/modules/Unity/Test/UnityTestCase.qml (+10/-0)
To merge this branch: bzr merge lp:~aacid/unity8/waitForRenderingNoCrash
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve on 2015-01-07
Michał Sawicz 2015-01-07 Approve on 2015-01-07
Review via email: mp+245747@code.launchpad.net

Commit Message

Make waitForRendering with no item fail instead of crash

Description of the Change

 * Are there any related MPs required for this MP to build/function as expected?
No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
No, it's just a test change

 * Did you make sure that your branch does not contain spurious tags?
Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
1525. By Albert Astals Cid on 2015-01-07

Add ;

Michał Sawicz (saviq) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Just tests, will make sure that CI does its job.

 * Did CI run pass? If not, please explain why.
Waiting.

 * Did you make sure that the branch does not contain spurious tags?
Y

review: Approve
1526. By Albert Astals Cid on 2015-01-09

Add note we can remove it once we switch to Qt 5.5

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/utils/modules/Unity/Test/UnityTestCase.qml'
2--- tests/utils/modules/Unity/Test/UnityTestCase.qml 2014-11-24 11:17:33 +0000
3+++ tests/utils/modules/Unity/Test/UnityTestCase.qml 2015-01-09 08:47:16 +0000
4@@ -381,4 +381,14 @@
5 }
6 }
7 }
8+
9+ // TODO This function can be removed altogether once we use Qt 5.5 which has the same feature
10+ function waitForRendering(item, timeout) {
11+ if (timeout === undefined)
12+ timeout = 5000;
13+ if (!item)
14+ qtest_fail("No item given to waitForRendering", 1);
15+ return qtest_results.waitForRendering(item, timeout);
16+ }
17+
18 }

Subscribers

People subscribed via source and target branches