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

Proposed by Albert Astals Cid
Status: Merged
Approved by: Michael Zanetti
Approved revision: 1454
Merged at revision: 1458
Proposed branch: lp:~aacid/unity8/qmluitestsfix
Merge into: lp:unity8
Diff against target: 43 lines (+5/-5)
3 files modified
tests/qmltests/Dash/tst_GenericScopeView.qml (+2/-2)
tests/qmltests/Dash/tst_PreviewListView.qml (+2/-2)
tests/qmltests/Panel/tst_IndicatorsBar.qml (+1/-1)
To merge this branch: bzr merge lp:~aacid/unity8/qmluitestsfix
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Michael Zanetti (community) Approve
Nick Dedekind (community) Needs Fixing
Review via email: mp+242652@code.launchpad.net

Commit message

Fix some qmluitests

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?
Yes, [more] tests now pass

 * 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.
Revision history for this message
Michael Zanetti (mzanetti) :
review: Needs Information
Revision history for this message
Michael Zanetti (mzanetti) :
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Nick Dedekind (nick-dedekind) wrote :

comment attached

review: Needs Fixing
lp:~aacid/unity8/qmluitestsfix updated
1453. By Albert Astals Cid

update aux again

1454. By Albert Astals Cid

The waitForRendering is enough to get the proper position on valgrind

Revision history for this message
Michael Zanetti (mzanetti) wrote :

lgtm now

 * Did you perform an exploratory manual test run of the code change and any related functionality?

yep. all tests passing here.

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

I couldn't reproduce the lazyImage one Jenkins still complains about.

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

yes

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/qmltests/Dash/tst_GenericScopeView.qml'
2--- tests/qmltests/Dash/tst_GenericScopeView.qml 2014-10-21 13:15:51 +0000
3+++ tests/qmltests/Dash/tst_GenericScopeView.qml 2014-11-24 14:47:24 +0000
4@@ -461,8 +461,8 @@
5
6 var innerHeader = findChild(header, "innerPageHeader");
7 verify(innerHeader, "Could not find the inner header");
8- verify(Qt.colorEqual(innerHeader.textColor, data.foreground),
9- "Foreground color not equal: %1 != %2".arg(innerHeader.textColor).arg(data.foreground));
10+ verify(Qt.colorEqual(innerHeader.config.foregroundColor, data.foreground),
11+ "Foreground color not equal: %1 != %2".arg(innerHeader.config.foregroundColor).arg(data.foreground));
12
13 var background = findChild(header, "headerBackground");
14 verify(background, "Could not find the background");
15
16=== modified file 'tests/qmltests/Dash/tst_PreviewListView.qml'
17--- tests/qmltests/Dash/tst_PreviewListView.qml 2014-09-18 05:15:18 +0000
18+++ tests/qmltests/Dash/tst_PreviewListView.qml 2014-11-24 14:47:24 +0000
19@@ -100,8 +100,8 @@
20
21 var innerHeader = findChild(header, "innerPageHeader");
22 verify(innerHeader, "Could not find the inner header");
23- verify(Qt.colorEqual(innerHeader.textColor, UbuntuColors.darkGrey),
24- "Foreground color not equal: %1 != %2".arg(innerHeader.textColor).arg(UbuntuColors.darkGrey));
25+ verify(Qt.colorEqual(innerHeader.config.foregroundColor, UbuntuColors.darkGrey),
26+ "Foreground color not equal: %1 != %2".arg(innerHeader.config.foregroundColor).arg(UbuntuColors.darkGrey));
27
28 var background = findChild(header, "headerBackground");
29 verify(background, "Could not find the background");
30
31=== modified file 'tests/qmltests/Panel/tst_IndicatorsBar.qml'
32--- tests/qmltests/Panel/tst_IndicatorsBar.qml 2014-10-17 14:55:35 +0000
33+++ tests/qmltests/Panel/tst_IndicatorsBar.qml 2014-11-24 14:47:24 +0000
34@@ -136,8 +136,8 @@
35 var dataItem = findChild(indicatorsBar, root.originalModelData[data.index]["identifier"] + "-panelItem");
36 verify(dataItem !== null);
37
38+ waitForRendering(dataItem);
39 var mappedPosition = indicatorsBar.mapFromItem(dataItem, dataItem.width/2, dataItem.height/2);
40-
41 indicatorsBar.selectItemAt(mappedPosition.x);
42 indicatorsBar.expanded = true;
43 wait_for_expansion_to_settle();

Subscribers

People subscribed via source and target branches