Merge lp:~fboucault/ubuntu-ui-toolkit/fix_async_width_height into lp:ubuntu-ui-toolkit/staging
- fix_async_width_height
- Merge into staging
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Cris Dywan | ||||
Approved revision: | 2080 | ||||
Merged at revision: | 2078 | ||||
Proposed branch: | lp:~fboucault/ubuntu-ui-toolkit/fix_async_width_height | ||||
Merge into: | lp:ubuntu-ui-toolkit/staging | ||||
Diff against target: |
73 lines (+17/-4) 5 files modified
src/Ubuntu/Components/1.2/ActivityIndicator.qml (+5/-0) src/Ubuntu/Components/1.3/ActivityIndicator.qml (+5/-0) src/Ubuntu/Components/Themes/Ambiance/1.2/ActivityIndicatorStyle.qml (+0/-2) src/Ubuntu/Components/Themes/Ambiance/1.3/ActivityIndicatorStyle.qml (+0/-2) tests/unit/components/tst_activityindicator.qml (+7/-0) |
||||
To merge this branch: | bzr merge lp:~fboucault/ubuntu-ui-toolkit/fix_async_width_height | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
ubuntu-sdk-build-bot | continuous-integration | Approve | |
Cris Dywan | Approve | ||
Review via email: mp+303670@code.launchpad.net |
Commit message
ActivityIndicat
Description of the change
ActivityIndicat
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2078
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2078
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2078
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2078
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild:
https:/
Cris Dywan (kalikiana) wrote : | # |
Looks good. Thanks!
Cris Dywan (kalikiana) wrote : | # |
One thing: what about test cases to catch this in the future? It should be enough to get the warnings in a unit test.
- 2079. By Florian Boucault
-
ActivityIndicator: set size on component rather than style that does not accept an implicit size.
- 2080. By Florian Boucault
-
forgotten test
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2079
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2079
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2079
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2079
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2079
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild:
https:/
Cris Dywan (kalikiana) wrote : | # |
Thanks for the test case!
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2080
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2080
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
FAILED: Continuous integration, rev:2080
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2080
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
FAILED: Continuous integration, rev:2080
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
FAILURE: https:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2080
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2080
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2080
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote : | # |
PASSED: Continuous integration, rev:2080
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild:
https:/
Preview Diff
1 | === modified file 'src/Ubuntu/Components/1.2/ActivityIndicator.qml' |
2 | --- src/Ubuntu/Components/1.2/ActivityIndicator.qml 2016-08-17 14:42:42 +0000 |
3 | +++ src/Ubuntu/Components/1.2/ActivityIndicator.qml 2016-08-23 13:23:40 +0000 |
4 | @@ -52,5 +52,10 @@ |
5 | */ |
6 | property bool running: false |
7 | |
8 | + implicitWidth: units.gu(3) |
9 | + implicitHeight: units.gu(3) |
10 | + width: units.gu(3) |
11 | + height: units.gu(3) |
12 | + |
13 | style: Theme.createStyleComponent("ActivityIndicatorStyle.qml", indicator) |
14 | } |
15 | |
16 | === modified file 'src/Ubuntu/Components/1.3/ActivityIndicator.qml' |
17 | --- src/Ubuntu/Components/1.3/ActivityIndicator.qml 2016-08-17 14:42:42 +0000 |
18 | +++ src/Ubuntu/Components/1.3/ActivityIndicator.qml 2016-08-23 13:23:40 +0000 |
19 | @@ -52,5 +52,10 @@ |
20 | */ |
21 | property bool running: false |
22 | |
23 | + implicitWidth: units.gu(3) |
24 | + implicitHeight: units.gu(3) |
25 | + width: units.gu(3) |
26 | + height: units.gu(3) |
27 | + |
28 | styleName: "ActivityIndicatorStyle" |
29 | } |
30 | |
31 | === modified file 'src/Ubuntu/Components/Themes/Ambiance/1.2/ActivityIndicatorStyle.qml' |
32 | --- src/Ubuntu/Components/Themes/Ambiance/1.2/ActivityIndicatorStyle.qml 2016-08-17 14:42:42 +0000 |
33 | +++ src/Ubuntu/Components/Themes/Ambiance/1.2/ActivityIndicatorStyle.qml 2016-08-23 13:23:40 +0000 |
34 | @@ -20,8 +20,6 @@ |
35 | Image { |
36 | id: container |
37 | |
38 | - implicitWidth: units.gu(3) |
39 | - implicitHeight: units.gu(3) |
40 | smooth: true |
41 | visible: styledItem.running |
42 | fillMode: Image.PreserveAspectFit |
43 | |
44 | === modified file 'src/Ubuntu/Components/Themes/Ambiance/1.3/ActivityIndicatorStyle.qml' |
45 | --- src/Ubuntu/Components/Themes/Ambiance/1.3/ActivityIndicatorStyle.qml 2016-08-17 14:42:42 +0000 |
46 | +++ src/Ubuntu/Components/Themes/Ambiance/1.3/ActivityIndicatorStyle.qml 2016-08-23 13:23:40 +0000 |
47 | @@ -20,8 +20,6 @@ |
48 | Image { |
49 | id: container |
50 | |
51 | - implicitWidth: units.gu(3) |
52 | - implicitHeight: units.gu(3) |
53 | smooth: true |
54 | visible: styledItem.running && styledItem.visible |
55 | fillMode: Image.PreserveAspectFit |
56 | |
57 | === modified file 'tests/unit/components/tst_activityindicator.qml' |
58 | --- tests/unit/components/tst_activityindicator.qml 2015-03-03 13:20:06 +0000 |
59 | +++ tests/unit/components/tst_activityindicator.qml 2016-08-23 13:23:40 +0000 |
60 | @@ -27,6 +27,13 @@ |
61 | compare(activityIndicator.running,true,"can set/get running") |
62 | } |
63 | |
64 | + function test_size() { |
65 | + compare(activityIndicator.implicitWidth, units.gu(3), "Default implicitWidth is 3GUs") |
66 | + compare(activityIndicator.implicitHeight, units.gu(3), "Default implicitHeight is 3GUs") |
67 | + compare(activityIndicator.width, units.gu(3), "Default width is 3GUs") |
68 | + compare(activityIndicator.height, units.gu(3), "Default height is 3GUs") |
69 | + } |
70 | + |
71 | ActivityIndicator { |
72 | id: activityIndicator |
73 | } |
PASSED: Continuous integration, rev:2078 /jenkins. ubuntu. com/ubuntu- sdk/job/ ubuntu- ui-toolkit- ci-i386- gles-stable/ 1046/ /jenkins. ubuntu. com/ubuntu- sdk/job/ generic- update- mp/5506/ console
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild: /jenkins. ubuntu. com/ubuntu- sdk/job/ ubuntu- ui-toolkit- ci-i386- gles-stable/ 1046/rebuild
https:/