Merge lp:~canonical-platform-qa/camera-app/lp1366825_fix_zoom into lp:camera-app

Proposed by Omer Akram
Status: Merged
Approved by: Florian Boucault
Approved revision: 390
Merged at revision: 411
Proposed branch: lp:~canonical-platform-qa/camera-app/lp1366825_fix_zoom
Merge into: lp:camera-app
Diff against target: 30 lines (+3/-4)
2 files modified
tests/autopilot/camera_app/tests/test_capture.py (+1/-2)
tests/autopilot/camera_app/tests/test_zoom.py (+2/-2)
To merge this branch: bzr merge lp:~canonical-platform-qa/camera-app/lp1366825_fix_zoom
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Florian Boucault (community) Approve
Review via email: mp+233725@code.launchpad.net

Commit message

autopilot: fix camera zoom bar not showing in test due to small initial pinch

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
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
PS Jenkins bot (ps-jenkins) wrote :
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
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Omer Akram (om26er) wrote :

There seems to be a bug in the icons model, the settingsProperty for torch icon is sometimes given to the location icon, so that results in the test clicking on the wrong icon, hence causing test failure. https://bugs.launchpad.net/bugs/1369573

Revision history for this message
Florian Boucault (fboucault) wrote :

Looks great now. Tests seem to pass. Testing a bit more before final approve.

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/autopilot/camera_app/tests/test_capture.py'
2--- tests/autopilot/camera_app/tests/test_capture.py 2014-07-03 10:28:23 +0000
3+++ tests/autopilot/camera_app/tests/test_capture.py 2014-10-13 15:23:30 +0000
4@@ -32,10 +32,9 @@
5 super(TestCapture, self).tearDown()
6
7 """Test taking a picture"""
8- @unittest.skipIf(model() == 'Galaxy Nexus', 'Unusable with Mir on maguro')
9 def test_take_picture(self):
10 exposure_button = self.main_window.get_exposure_button()
11- pictures_dir = os.path.expanduser("~/Pictures/camera")
12+ pictures_dir = os.path.expanduser("~/Pictures/com.ubuntu.camera")
13
14 # Remove all pictures from pictures_dir that match our pattern
15 files = [
16
17=== modified file 'tests/autopilot/camera_app/tests/test_zoom.py'
18--- tests/autopilot/camera_app/tests/test_zoom.py 2014-06-30 07:57:09 +0000
19+++ tests/autopilot/camera_app/tests/test_zoom.py 2014-10-13 15:23:30 +0000
20@@ -33,8 +33,8 @@
21 viewfinder = self.main_window.get_viewfinder_geometry()
22 viewfinder_center = self.get_center(viewfinder)
23
24- pinch(viewfinder_center, (0, 0), (10, 0))
25- pinch(viewfinder_center, (10, 0), (0, 0))
26+ pinch(viewfinder_center, (0, 0), (15, 0))
27+ pinch(viewfinder_center, (15, 0), (0, 0))
28
29 """Tests the zoom slider to zoom in"""
30 def test_slider_zoom_in(self):

Subscribers

People subscribed via source and target branches