Merge lp:~aacid/unity8/testCyclePreviewBroken into lp:unity8
- testCyclePreviewBroken
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Michael Zanetti |
Approved revision: | 657 |
Merged at revision: | 698 |
Proposed branch: | lp:~aacid/unity8/testCyclePreviewBroken |
Merge into: | lp:unity8 |
Diff against target: |
97 lines (+18/-10) 2 files modified
qml/Dash/PreviewListView.qml (+1/-0) tests/qmltests/Dash/tst_GenericScopeView.qml (+17/-10) |
To merge this branch: | bzr merge lp:~aacid/unity8/testCyclePreviewBroken |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Zanetti (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Unity Team | Pending | ||
Review via email: mp+203529@code.launchpad.net |
Commit message
Fix test_previewCycle
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 only fixing a test, doesn't change anything in exploratory manual test run
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
It's a test fix, does not change debian folder
* If you changed the UI, has there been a design review?
It's a test fix, does not change the UI
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:654
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Michael Zanetti (mzanetti) wrote : | # |
revoking my approval until ci passes...
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:654
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 655. By Albert Astals Cid
-
Merge
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:655
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 656. By Albert Astals Cid
-
Make tests be gentler to the next test
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:656
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:656
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:656
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 657. By Albert Astals Cid
-
Merge
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:657
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:657
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:657
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Michael Zanetti (mzanetti) wrote : | # |
* Did you perform an exploratory manual test run of the code change and any related functionality?
Yes, functionality unchanged. Tests working properly again.
* Did CI run pass? If not, please explain why.
Yip Yip!
Preview Diff
1 | === modified file 'qml/Dash/PreviewListView.qml' |
2 | --- qml/Dash/PreviewListView.qml 2014-01-07 16:36:31 +0000 |
3 | +++ qml/Dash/PreviewListView.qml 2014-02-05 08:18:37 +0000 |
4 | @@ -32,6 +32,7 @@ |
5 | property alias model: previewListView.model |
6 | property alias currentIndex: previewListView.currentIndex |
7 | property alias currentItem: previewListView.currentItem |
8 | + property alias count: previewListView.count |
9 | |
10 | Image { |
11 | objectName: "pointerArrow" |
12 | |
13 | === modified file 'tests/qmltests/Dash/tst_GenericScopeView.qml' |
14 | --- tests/qmltests/Dash/tst_GenericScopeView.qml 2014-02-03 19:18:05 +0000 |
15 | +++ tests/qmltests/Dash/tst_GenericScopeView.qml 2014-02-05 08:18:37 +0000 |
16 | @@ -41,17 +41,10 @@ |
17 | signal mainStageFocusedApplicationChanged() |
18 | } |
19 | |
20 | - PreviewListView { |
21 | - id: previewListView |
22 | - anchors.fill: parent |
23 | - openEffect: openEffect |
24 | - categoryView: genericScopeView.categoryView |
25 | - scope: genericScopeView.scope |
26 | - } |
27 | - |
28 | DashContentOpenEffect { |
29 | id: openEffect |
30 | previewListView: previewListView |
31 | + sourceItem: genericScopeView |
32 | } |
33 | |
34 | PageHeaderLabel { |
35 | @@ -110,6 +103,7 @@ |
36 | previewListView.open = true; |
37 | scopes.get(0).hideDash(); |
38 | tryCompare(previewListView, "open", false); |
39 | + tryCompare(openEffect, "gap", 0); |
40 | } |
41 | |
42 | function openPreview() { |
43 | @@ -194,6 +188,7 @@ |
44 | |
45 | function test_previewCycle() { |
46 | tryCompare(previewListView, "open", false); |
47 | + tryCompare(openEffect, "gap", 0); |
48 | |
49 | openPreview(); |
50 | |
51 | @@ -211,7 +206,7 @@ |
52 | checkArrowPosition(0); |
53 | |
54 | // flick to the next previews |
55 | - |
56 | + tryCompare(previewListView, "count", 15); |
57 | for (var i = 1; i < previewListView.count; ++i) { |
58 | |
59 | mouseFlick(previewListView, previewListView.width - units.gu(1), |
60 | @@ -332,7 +327,7 @@ |
61 | tryCompare(previewListView, "open", false); |
62 | } |
63 | |
64 | - function test_filter_expand_expand() { |
65 | + function test_filter_expand_expand_collapse() { |
66 | // wait for the item to be there |
67 | tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader2") != undefined; }, true); |
68 | |
69 | @@ -368,11 +363,15 @@ |
70 | tryCompare(category0, "filtered", false); |
71 | tryCompare(category2, "filtered", true); |
72 | tryCompare(category2FilterGrid, "filter", true); |
73 | + mouseClick(header0, header0.width / 2, header0.height / 2); |
74 | + tryCompare(category0, "filtered", true); |
75 | + tryCompare(category2, "filtered", true); |
76 | } |
77 | |
78 | function test_narrow_delegate_ranges_expand() { |
79 | tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory0") != undefined; }, true); |
80 | var category = findChild(genericScopeView, "dashCategory0") |
81 | + tryCompare(category, "filtered", true); |
82 | |
83 | shell.width = units.gu(20) |
84 | var categoryListView = findChild(genericScopeView, "categoryListView"); |
85 | @@ -386,4 +385,12 @@ |
86 | } |
87 | } |
88 | } |
89 | + |
90 | + PreviewListView { |
91 | + id: previewListView |
92 | + anchors.fill: parent |
93 | + openEffect: openEffect |
94 | + categoryView: genericScopeView.categoryView |
95 | + scope: genericScopeView.scope |
96 | + } |
97 | } |
lgtm.