Merge lp:~aacid/unity/filtergrid_test_findChild into lp:unity/phablet

Proposed by Albert Astals Cid
Status: Merged
Approved by: Albert Astals Cid
Approved revision: no longer in the source branch.
Merged at revision: 616
Proposed branch: lp:~aacid/unity/filtergrid_test_findChild
Merge into: lp:unity/phablet
Diff against target: 49 lines (+4/-3)
2 files modified
Components/FilterGrid.qml (+1/-1)
tests/qmltests/Components/tst_FilterGrid.qml (+3/-2)
To merge this branch: bzr merge lp:~aacid/unity/filtergrid_test_findChild
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Michael Zanetti (community) Approve
Review via email: mp+160034@code.launchpad.net

Commit message

Use findChild instead of property

To post a comment you must log in.
Revision history for this message
Michael Zanetti (mzanetti) wrote :

cheers

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

FAILED: Autolanding.
No commit message was specified in the merge proposal. Hit 'Add commit message' on the merge proposal web page or follow the link below. You can approve the merge proposal yourself to rerun.
https://code.launchpad.net/~aacid/unity/filtergrid_test_findChild/+merge/160034/+edit-commit-message

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

Forgot to set the commit message, reapproving

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

I don't really like the usage of "as UT" when importing stuff that doesn't cause comflicts... but ok - matter of taste.

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

Michael reapproved again, top approving

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Components/FilterGrid.qml'
2--- Components/FilterGrid.qml 2013-04-16 14:56:56 +0000
3+++ Components/FilterGrid.qml 2013-04-22 10:29:31 +0000
4@@ -53,7 +53,6 @@
5 property alias cellHeight: iconTileGrid.cellHeight
6
7 // for testing purposes
8- property alias __filterToggleButton: button
9 property alias __expansionAnimation: heightAnimation
10
11 height: childrenRect.height
12@@ -101,6 +100,7 @@
13
14 AbstractButton {
15 id: button
16+ objectName: "filterToggleButton"
17
18 anchors {
19 top: parent.top
20
21=== modified file 'tests/qmltests/Components/tst_FilterGrid.qml'
22--- tests/qmltests/Components/tst_FilterGrid.qml 2013-04-09 14:49:00 +0000
23+++ tests/qmltests/Components/tst_FilterGrid.qml 2013-04-22 10:29:31 +0000
24@@ -19,6 +19,7 @@
25 import "../../../Components"
26 import Ubuntu.Components.ListItems 0.1 as ListItem
27 import Ubuntu.Components 0.1
28+import Unity.Test 0.1 as UT
29
30 /*
31 You should see 6 green squares (from "A" to "F") and a button "View all (12)".
32@@ -114,7 +115,7 @@
33 }
34 }
35
36- TestCase {
37+ UT.UnityTestCase {
38 name: "FilterGrid"
39 when: windowShown
40
41@@ -152,7 +153,7 @@
42 // Checks that the filter toggle button, the one that says "View All (xy)",
43 // shows up only when it's possible for the grid to be expanded.
44 function test_filterToggleButton() {
45- var filterToggleButton = filterGrid.__filterToggleButton
46+ var filterToggleButton = findChild(filterGrid, "filterToggleButton");
47
48 for (var i = 0; i < 4; ++i) {
49 collapsedRowCountSelector.selectedIndex = i

Subscribers

People subscribed via source and target branches