Merge lp:~carla-sella/ubuntu-rssreader-app/add-feed-test into lp:~ubuntu-shorts-dev/ubuntu-rssreader-app/trunk

Proposed by Carla Sella
Status: Rejected
Rejected by: Nicholas Skaggs
Proposed branch: lp:~carla-sella/ubuntu-rssreader-app/add-feed-test
Merge into: lp:~ubuntu-shorts-dev/ubuntu-rssreader-app/trunk
Diff against target: 170 lines (+1/-131)
6 files modified
FeedListPage.qml (+1/-0)
tests/autopilot/ubuntu_rssreader_app/__init__.py (+0/-8)
tests/autopilot/ubuntu_rssreader_app/emulators/__init__.py (+0/-6)
tests/autopilot/ubuntu_rssreader_app/emulators/main_window.py (+0/-24)
tests/autopilot/ubuntu_rssreader_app/tests/__init__.py (+0/-55)
tests/autopilot/ubuntu_rssreader_app/tests/test_rssreader.py (+0/-38)
To merge this branch: bzr merge lp:~carla-sella/ubuntu-rssreader-app/add-feed-test
Reviewer Review Type Date Requested Status
Nicholas Skaggs (community) Needs Fixing
Ubuntu Phone Apps Jenkins Bot continuous-integration Needs Fixing
Review via email: mp+171652@code.launchpad.net

Commit message

Add new feed autopilot test.

Description of the change

Add new feed test.
Please check if clicking confirm button part (lines 38-44 of test_rssreader.py) is ok.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) 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/~carla-sella/ubuntu-rssreader-app/add-feed-test/+merge/171652/+edit-commit-message

review: Needs Fixing (continuous-integration)
Revision history for this message
David Planella (dpm) wrote :

Thanks a lot Carla! Remember that for core apps you need to set the commit message in addition to the description in the merge proposal, so that Jenkins can use it for the commit. I've added it for you on this one, but it might be worth remembering for the next ones.

Revision history for this message
Carla Sella (carla-sella) wrote :

Ok thanks David.

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: Needs Fixing (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Carla, it seems like your merge is removing quite a bit of files. I'm guessing this is on accident ;-) Can you take a look and check your branch again to make sure only the changes you intended are include? Thanks!

review: Needs Fixing
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Unmerged revisions

15. By Carla Sella

ubuntu rss app - adding feed test done

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'FeedListPage.qml'
2--- FeedListPage.qml 2013-06-16 07:43:59 +0000
3+++ FeedListPage.qml 2013-06-26 19:56:29 +0000
4@@ -480,6 +480,7 @@
5 anchors.centerIn: parent
6
7 TextField {
8+ objectName: "newFeedUrl"
9 id: tfFeedUrl
10 anchors.horizontalCenter: parent.horizontalCenter
11 width: parent.width
12
13=== removed directory 'tests/autopilot/ubuntu_rssreader_app'
14=== removed file 'tests/autopilot/ubuntu_rssreader_app/__init__.py'
15--- tests/autopilot/ubuntu_rssreader_app/__init__.py 2013-05-31 12:59:55 +0000
16+++ tests/autopilot/ubuntu_rssreader_app/__init__.py 1970-01-01 00:00:00 +0000
17@@ -1,8 +0,0 @@
18-# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
19-# Copyright 2013 Canonical
20-#
21-# This program is free software: you can redistribute it and/or modify it
22-# under the terms of the GNU General Public License version 3, as published
23-# by the Free Software Foundation.
24-
25-"""RSS reader app tests and emulators - top level package."""
26
27=== removed directory 'tests/autopilot/ubuntu_rssreader_app/emulators'
28=== removed file 'tests/autopilot/ubuntu_rssreader_app/emulators/__init__.py'
29--- tests/autopilot/ubuntu_rssreader_app/emulators/__init__.py 2013-05-31 12:59:55 +0000
30+++ tests/autopilot/ubuntu_rssreader_app/emulators/__init__.py 1970-01-01 00:00:00 +0000
31@@ -1,6 +0,0 @@
32-# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
33-# Copyright 2013 Canonical
34-#
35-# This program is free software: you can redistribute it and/or modify it
36-# under the terms of the GNU General Public License version 3, as published
37-# by the Free Software Foundation.
38
39=== removed file 'tests/autopilot/ubuntu_rssreader_app/emulators/main_window.py'
40--- tests/autopilot/ubuntu_rssreader_app/emulators/main_window.py 2013-05-31 12:59:55 +0000
41+++ tests/autopilot/ubuntu_rssreader_app/emulators/main_window.py 1970-01-01 00:00:00 +0000
42@@ -1,24 +0,0 @@
43-# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
44-# Copyright 2013 Canonical
45-#
46-# This program is free software: you can redistribute it and/or modify it
47-# under the terms of the GNU General Public License version 3, as published
48-# by the Free Software Foundation.
49-
50-"""RSS Reader app autopilot emulators."""
51-
52-
53-class MainWindow(object):
54- """An emulator class that makes it easy to interact with the
55- rssreader-app.
56-
57- """
58- def __init__(self, app):
59- self.app = app
60-
61- def get_qml_view(self):
62- """Get the main QML view"""
63- return self.app.select_single("QQuickView")
64-
65- def get_toolbar(self):
66- return self.app.select_single("Toolbar")
67
68=== removed directory 'tests/autopilot/ubuntu_rssreader_app/tests'
69=== removed file 'tests/autopilot/ubuntu_rssreader_app/tests/__init__.py'
70--- tests/autopilot/ubuntu_rssreader_app/tests/__init__.py 2013-05-31 12:59:55 +0000
71+++ tests/autopilot/ubuntu_rssreader_app/tests/__init__.py 1970-01-01 00:00:00 +0000
72@@ -1,55 +0,0 @@
73-# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
74-# Copyright 2013 Canonical
75-#
76-# This program is free software: you can redistribute it and/or modify it
77-# under the terms of the GNU General Public License version 3, as published
78-# by the Free Software Foundation.
79-
80-"""RSSReader app autopilot tests."""
81-
82-import os.path
83-
84-from autopilot.input import Mouse, Touch, Pointer
85-from autopilot.platform import model
86-from autopilot.testcase import AutopilotTestCase
87-
88-from ubuntu_rssreader_app.emulators.main_window import MainWindow
89-
90-
91-class RssreaderTestCase(AutopilotTestCase):
92-
93- """A common test case class that provides several useful methods for
94- rrsreader-app tests.
95-
96- """
97- if model() == 'Desktop':
98- scenarios = [('with mouse', dict(input_device_class=Mouse))]
99- else:
100- scenarios = [('with touch', dict(input_device_class=Touch))]
101-
102- local_location = "../../ubuntu-rssreader-app.qml"
103-
104- def setUp(self):
105- self.pointing_device = Pointer(self.input_device_class.create())
106- super(RssreaderTestCase, self).setUp()
107- if os.path.exists(self.local_location):
108- self.launch_test_local()
109- else:
110- self.launch_test_installed()
111-
112- def launch_test_local(self):
113- self.app = self.launch_test_application(
114- "qmlscene",
115- self.local_location,
116- app_type='qt')
117-
118- def launch_test_installed(self):
119- self.app = self.launch_test_application(
120- "qmlscene",
121- "/usr/share/ubuntu-rssreader-app/ubuntu-rssreader-app.qml",
122- "--desktop_file_hint=/usr/share/applications/ubuntu-rssreader-app.desktop",
123- app_type='qt')
124-
125- @property
126- def main_window(self):
127- return MainWindow(self.app)
128
129=== removed file 'tests/autopilot/ubuntu_rssreader_app/tests/test_rssreader.py'
130--- tests/autopilot/ubuntu_rssreader_app/tests/test_rssreader.py 2013-05-31 12:59:55 +0000
131+++ tests/autopilot/ubuntu_rssreader_app/tests/test_rssreader.py 1970-01-01 00:00:00 +0000
132@@ -1,38 +0,0 @@
133-# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
134-# Copyright 2013 Canonical
135-#
136-# This program is free software: you can redistribute it and/or modify it
137-# under the terms of the GNU General Public License version 3, as published
138-# by the Free Software Foundation.
139-
140-"""RSS Reader app autopilot tests."""
141-
142-from __future__ import absolute_import
143-
144-from autopilot.matchers import Eventually
145-from testtools.matchers import Equals
146-
147-from ubuntu_rssreader_app.tests import RssreaderTestCase
148-
149-
150-class TestMainWindow(RssreaderTestCase):
151-
152- def setUp(self):
153- super(TestMainWindow, self).setUp()
154- self.assertThat(
155- self.main_window.get_qml_view().visible, Eventually(Equals(True)))
156-
157- def tearDown(self):
158- super(TestMainWindow, self).tearDown()
159-
160- def test_toolbar_shows(self):
161- """Make sure that dragging from the bottom reveals the hidden
162- toolbar."""
163- toolbar = self.main_window.get_toolbar()
164-
165- x, y, w, h = toolbar.globalRect
166- tx = x + (w / 2)
167- ty = y + (h - 2)
168-
169- self.pointing_device.drag(tx, ty, tx, ty - h)
170- self.assertThat(toolbar.state, Eventually(Equals("spread")))

Subscribers

People subscribed via source and target branches