Merge lp:~veebers/autopilot-qt/backout-latest-change into lp:autopilot-qt

Proposed by Christopher Lee
Status: Merged
Approved by: Christopher Lee
Approved revision: 78
Merged at revision: 78
Proposed branch: lp:~veebers/autopilot-qt/backout-latest-change
Merge into: lp:autopilot-qt
Diff against target: 96 lines (+8/-26)
6 files modified
driver/qtnode.cpp (+6/-5)
tests/autopilot/libautopilot_qt/emulators/main_window_qt4.py (+0/-3)
tests/autopilot/libautopilot_qt/emulators/main_window_qt5.py (+0/-4)
tests/autopilot/libautopilot_qt/tests/test_main.py (+2/-6)
tests/autopilot/testapp/qt4.qml (+0/-4)
tests/autopilot/testapp/qt5.qml (+0/-4)
To merge this branch: bzr merge lp:~veebers/autopilot-qt/backout-latest-change
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Christopher Lee (community) Approve
Review via email: mp+203880@code.launchpad.net

Commit message

Backing out recent change that introduces issues on devices.

Description of the change

Backing out recent change that introduces issues on devices.

To post a comment you must log in.
Revision history for this message
Christopher Lee (veebers) :
review: Approve
Revision history for this message
Christopher Lee (veebers) wrote :

Backing out this change as it introduced issues on the devices (and I'm pretty sure can be linked to this bug:https://bugs.launchpad.net/autopilot/+bug/1273956 and https://bugs.launchpad.net/unity8/+bug/1273720).

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 'driver/qtnode.cpp'
2--- driver/qtnode.cpp 2014-01-16 22:22:22 +0000
3+++ driver/qtnode.cpp 2014-01-30 07:11:35 +0000
4@@ -180,11 +180,12 @@
5 children.push_back(std::make_shared<QtNode>(childItem, shared_from_this()));
6 }
7 }
8- }
9- foreach (QObject *child, object_->children())
10- {
11- if (child->parent() == object_)
12- children.push_back(std::make_shared<QtNode>(child, shared_from_this()));
13+ } else {
14+ foreach (QObject *child, object_->children())
15+ {
16+ if (child->parent() == object_)
17+ children.push_back(std::make_shared<QtNode>(child, shared_from_this()));
18+ }
19 }
20
21 #else
22
23=== modified file 'tests/autopilot/libautopilot_qt/emulators/main_window_qt4.py'
24--- tests/autopilot/libautopilot_qt/emulators/main_window_qt4.py 2014-01-17 01:01:50 +0000
25+++ tests/autopilot/libautopilot_qt/emulators/main_window_qt4.py 2014-01-30 07:11:35 +0000
26@@ -55,6 +55,3 @@
27 if mousearea is None:
28 logger.error("*** select_single(\"QDeclarativeMouseArea\") failed ***")
29 return mousearea
30-
31- def get_non_visual_component(self):
32- return self.app.select_single(objectName="listModelTest")
33
34=== modified file 'tests/autopilot/libautopilot_qt/emulators/main_window_qt5.py'
35--- tests/autopilot/libautopilot_qt/emulators/main_window_qt5.py 2014-01-17 01:01:50 +0000
36+++ tests/autopilot/libautopilot_qt/emulators/main_window_qt5.py 2014-01-30 07:11:35 +0000
37@@ -55,7 +55,3 @@
38 if mousearea is None:
39 logger.error("*** select_single(\"QQuickMouseArea\") failed ***")
40 return mousearea
41-
42- def get_non_visual_component(self):
43- return self.app.select_single(objectName="listModelTest")
44-
45
46=== modified file 'tests/autopilot/libautopilot_qt/tests/test_main.py'
47--- tests/autopilot/libautopilot_qt/tests/test_main.py 2014-01-17 01:01:50 +0000
48+++ tests/autopilot/libautopilot_qt/tests/test_main.py 2014-01-30 07:11:35 +0000
49@@ -34,10 +34,6 @@
50 rectangle = self.main_window.get_test_rectangle_by_child_search()
51 self.assertThat(rectangle, NotEquals(None))
52
53- def test_find_nonvisual_component(self):
54- component = self.main_window.get_non_visual_component()
55- self.assertThat(component, NotEquals(None))
56-
57
58 class TestProperties(AutopilotQtTestCase):
59
60@@ -65,8 +61,8 @@
61 self.assertThat(rectangle.color, Equals([0, 0, 255, 255]))
62
63 mousearea = self.main_window.get_test_mousearea()
64- self.mouse.move_to_object(mousearea)
65- self.mouse.click()
66+ self.pointing_device.move_to_object(mousearea)
67+ self.pointing_device.click()
68
69 self.assertThat(rectangle.color, Eventually(Equals([255, 0, 0, 255])))
70
71
72=== modified file 'tests/autopilot/testapp/qt4.qml'
73--- tests/autopilot/testapp/qt4.qml 2014-01-17 01:01:50 +0000
74+++ tests/autopilot/testapp/qt4.qml 2014-01-30 07:11:35 +0000
75@@ -56,8 +56,4 @@
76
77 onClicked: rect.color = "red"
78 }
79-
80- ListModel {
81- objectName: "listModelTest"
82- }
83 }
84
85=== modified file 'tests/autopilot/testapp/qt5.qml'
86--- tests/autopilot/testapp/qt5.qml 2014-01-17 01:01:50 +0000
87+++ tests/autopilot/testapp/qt5.qml 2014-01-30 07:11:35 +0000
88@@ -56,8 +56,4 @@
89
90 onClicked: rect.color = "red"
91 }
92-
93- ListModel {
94- objectName: "listModelTest"
95- }
96 }

Subscribers

People subscribed via source and target branches