Merge lp:~vthompson/ubuntu-weather-app/display-temp-units into lp:ubuntu-weather-app/obsolete.trunk

Proposed by Victor Thompson
Status: Merged
Approved by: Martin Borho
Approved revision: 174
Merged at revision: 173
Proposed branch: lp:~vthompson/ubuntu-weather-app/display-temp-units
Merge into: lp:ubuntu-weather-app/obsolete.trunk
Diff against target: 49 lines (+5/-2)
3 files modified
components/CurrentWeather.qml (+1/-0)
components/WeatherTemperatureComponent.qml (+3/-2)
tests/autopilot/ubuntu_weather_app/tests/test_locationmanager.py (+1/-0)
To merge this branch: bzr merge lp:~vthompson/ubuntu-weather-app/display-temp-units
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Martin Borho Approve
Review via email: mp+200541@code.launchpad.net

Commit message

Add unit of measure for main temperature value.

Description of the change

Weather app should include the unit of measurement for temperature values, per the design spec [1] and visual [2].

[1] http://design.canonical.com/2013/03/app-patterns-applied-weather-key-journeys/
[2] http://design.canonical.com/2013/05/35908/

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Martin Borho (martin-borho) wrote :

Looks good to me, but I don't know why the test fails.

I can't get autopilot to work at the moment on saucy...

Revision history for this message
Victor Thompson (vthompson) wrote :

The tests fail on Saucy for me--almost all of them. However, the test that is failing above, ubuntu_weather_app.tests.test_locationmanager.TestLocationManager.test_del_add_bug, works fine for me on Trusty.

Revision history for this message
Martin Borho (martin-borho) wrote :

Tests all run fine in a trusty VM, so I'll approve it.

But I don't know how to get Jenkins picking it up again...

Revision history for this message
Martin Borho (martin-borho) wrote :

Looks good for me, thanks!

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

I think the sheet used to add the location is still visible when the newly added city is verified. I updated the test to check against the objectName of the list of added locations.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
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/CurrentWeather.qml'
2--- components/CurrentWeather.qml 2013-09-29 14:26:37 +0000
3+++ components/CurrentWeather.qml 2014-01-06 18:48:10 +0000
4@@ -270,6 +270,7 @@
5 Components.WeatherTemperatureComponent {
6 id: currentConditionTempContent
7 currentTemp: currentWeather.currentTemp
8+ tempScale: currentWeather.tempScale
9 minTemp: currentWeather.minTemp
10 maxTemp: currentWeather.maxTemp
11 anchors.fill: parent
12
13=== modified file 'components/WeatherTemperatureComponent.qml'
14--- components/WeatherTemperatureComponent.qml 2013-09-28 10:33:59 +0000
15+++ components/WeatherTemperatureComponent.qml 2014-01-06 18:48:10 +0000
16@@ -24,6 +24,7 @@
17 color: "transparent"
18
19 property int currentTemp
20+ property string tempScale
21 property int maxTemp
22 property int minTemp
23
24@@ -51,11 +52,11 @@
25 }
26 Text {
27 id: currentTempScale
28- text: String("°")
29+ text: String("°") + tempComponent.tempScale
30 style: Text.Raised
31 font.bold: false
32 font.family: "Ubuntu"
33- font.pointSize: FontUtils.sizeToPixels("x-large") //32
34+ font.pointSize: FontUtils.sizeToPixels("medium")
35 verticalAlignment: Text.AlignTop
36 horizontalAlignment: Text.AlignLeft
37 color: Theme.palette.normal.baseText
38
39=== modified file 'tests/autopilot/ubuntu_weather_app/tests/test_locationmanager.py'
40--- tests/autopilot/ubuntu_weather_app/tests/test_locationmanager.py 2013-12-17 18:52:10 +0000
41+++ tests/autopilot/ubuntu_weather_app/tests/test_locationmanager.py 2014-01-06 18:48:10 +0000
42@@ -90,6 +90,7 @@
43 firstResult = self.main_window.wait_select_single('Label', objectName='searchResult0')
44 self.pointing_device.move_to_object(firstResult)
45 self.pointing_device.click()
46+ sleep(1)
47
48 # LocationManagerPage should be visible and location added
49 addedItem = self.main_window.wait_select_single('Label', text=location)

Subscribers

People subscribed via source and target branches