Merge lp:~cr3/checkbox/touchpad_tests into lp:checkbox

Proposed by Marc Tardif
Status: Merged
Merged at revision: 1781
Proposed branch: lp:~cr3/checkbox/touchpad_tests
Merge into: lp:checkbox
Diff against target: 171 lines (+49/-28)
4 files modified
debian/changelog (+2/-0)
jobs/input.txt.in (+19/-0)
jobs/touchpad.txt.in (+11/-16)
scripts/touchpad_test (+17/-12)
To merge this branch: bzr merge lp:~cr3/checkbox/touchpad_tests
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Review via email: mp+130200@code.launchpad.net

Commit message

Merged improvements to touchpad tests by cr3.

Description of the change

These are the changes resulting from usability testing the touchpad tests. Once this branch is merged, the corresponding one in checkbox-certification should be merged.

To post a comment you must log in.
Revision history for this message
Daniel Manrique (roadmr) wrote :

Looks good to me, thanks! Merging.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-10-17 13:44:17 +0000
3+++ debian/changelog 2012-10-17 19:28:20 +0000
4@@ -25,6 +25,8 @@
5 * setup.py: added support for installing in virtualenv
6 * setup.py: made build dependency on qt4-make optional
7 * debian/control: Added python3-gi to run checkbox-qt.
8+ * jobs/input.txt.in, jobs/touchpad.txt.in: Added input/pointing tests
9+ and simplified horizontal/vertical scrolling tests.
10
11 [Sean Feole]
12 * [FEATURE] jobs/optical.txt.in: modified existing automation test
13
14=== modified file 'jobs/input.txt.in'
15--- jobs/input.txt.in 2012-08-20 13:55:05 +0000
16+++ jobs/input.txt.in 2012-10-17 19:28:20 +0000
17@@ -1,3 +1,22 @@
18+plugin: local
19+name: input/pointing
20+requires:
21+ device.category == 'MOUSE' or device.category == 'TOUCH'
22+_description: Pointing device tests.
23+command:
24+ cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "category=MOUSE" -w "category=TOUCH"'
25+ plugin: manual
26+ name: input/pointing_`basename $path`
27+ requires: device.path == "$path"
28+ description:
29+ PURPOSE:
30+ This will test your $product device
31+ STEPS:
32+ 1. Move the cursor with your $product.
33+ VERIFICATION:
34+ Did the cursor move?
35+ EOF
36+
37 plugin: manual
38 name: input/mouse
39 requires: device.category == 'MOUSE' or device.category == 'TOUCH'
40
41=== modified file 'jobs/touchpad.txt.in'
42--- jobs/touchpad.txt.in 2012-09-28 21:57:21 +0000
43+++ jobs/touchpad.txt.in 2012-10-17 19:28:20 +0000
44@@ -4,41 +4,36 @@
45 PURPOSE:
46 Touchpad verification
47 STEPS:
48- 1. Make sure that touchpad is enabled
49- 2. Try to move pointer using touchpad
50- 3. Pointer should move accordingly
51+ 1. Make sure that touchpad is enabled.
52+ 2. Move cursor using the touchpad.
53 VERIFICATION:
54- Did touchpad work as expected?
55+ Did the cursor move?
56
57 plugin: manual
58 name: touchpad/horizontal
59 requires: touchpad_scroll.horizontal_scroll == 'supported'
60-depends: touchpad/basic
61 command: touchpad_test right left
62 _description:
63 PURPOSE:
64- Touchpad verification
65+ Touchpad horizontal scroll verification
66 STEPS:
67- 1. Make sure that touchpad is enabled
68- 2. Select "Test" when ready and place your cursor within the borders of the displayed test window.
69- 3. Verify that you can move the horizontal slider by moving your finger side by side in the lower part of the touchpad
70+ 1. Select "Test" when ready and place your cursor within the borders of the displayed test window.
71+ 2. Verify that you can move the horizontal slider by moving your finger right and left in the lower part of the touchpad.
72 VERIFICATION:
73- Did touchpad work as expected?
74+ Could you scroll right and left?
75
76 plugin: manual
77 name: touchpad/vertical
78 requires: touchpad_scroll.vertical_scroll == 'supported'
79-depends: touchpad/basic
80 command: touchpad_test up down
81 _description:
82 PURPOSE:
83- Touchpad verification
84+ Touchpad vertical scroll verification
85 STEPS:
86- 1. Make sure that touchpad is enabled
87- 2. Select "Test" when ready and place your cursor within the borders of the displayed test window.
88- 3. Verify that you can move the vertical slider by moving your finger side by side in the right part of the touchpad
89+ 1. Select "Test" when ready and place your cursor within the borders of the displayed test window.
90+ 2. Verify that you can move the vertical slider by moving your finger up and down in the right part of the touchpad.
91 VERIFICATION:
92- Did touchpad work as expected?
93+ Could you scroll up and down?
94
95 plugin: shell
96 name: touchpad/singletouch-automated
97
98=== modified file 'scripts/touchpad_test'
99--- scripts/touchpad_test 2012-06-11 19:14:08 +0000
100+++ scripts/touchpad_test 2012-10-17 19:28:20 +0000
101@@ -60,8 +60,9 @@
102 self.label = self._add_label(vbox)
103 button_hbox = self._add_hbox(vbox)
104 validation_hbox = self._add_hbox(vbox)
105- exit_button = self._add_button(vbox, Gtk.STOCK_CLOSE)
106- exit_button.connect("clicked", lambda w: self.quit())
107+ self.status = self._add_label(vbox)
108+ self.exit_button = self._add_button(vbox, Gtk.STOCK_CLOSE)
109+ self.exit_button.connect("clicked", lambda w: self.quit())
110
111 # Add widgets for each direction.
112 self.icons = {}
113@@ -70,8 +71,10 @@
114 self.icons[direction] = self._add_image(
115 validation_hbox, Gtk.STOCK_INDEX)
116
117- self.show_text(_("Please move the mouse cursor to this window."))
118- self.show_text(_("Then scroll in each direction on your touchpad."))
119+ self.show_text(
120+ _("Please move the mouse cursor to this window.") +
121+ "\n" +
122+ _("Then scroll in each direction on your touchpad."))
123
124 def _add_button(self, context, stock):
125 button = self.button_factory(stock=stock)
126@@ -124,9 +127,7 @@
127
128 Gtk.main()
129
130- def quit(self, exit_code=EXIT_WITH_FAILURE):
131- self.exit_code = exit_code
132-
133+ def quit(self):
134 # Reset touchpad settings.
135 touchpad_settings = Gio.Settings.new(self.touchpad_key)
136 touchpad_settings.set_boolean(
137@@ -136,8 +137,10 @@
138
139 Gtk.main_quit()
140
141- def show_text(self, string):
142- self.label.set_text(self.label.get_text() + "\n" + string)
143+ def show_text(self, text, widget=None):
144+ if widget is None:
145+ widget = self.label
146+ widget.set_text(text)
147
148 def found_direction(self, direction):
149 direction.tested = True
150@@ -147,8 +150,10 @@
151
152 def check_directions(self):
153 if all([direction.tested for direction in self.directions]):
154- self.show_text(_("All required directions have been tested!"))
155- self.quit(EXIT_WITH_SUCCESS)
156+ self.show_text(
157+ _("All required directions have been tested!"), self.status)
158+ self.exit_code = EXIT_WITH_SUCCESS
159+ self.exit_button.grab_focus()
160
161 def on_scroll(self, window, event):
162 for direction in self.directions:
163@@ -181,7 +186,7 @@
164 try:
165 scroller.run()
166 except KeyboardInterrupt:
167- scroller.show_text(_("Test interrupted"))
168+ scroller.show_text(_("Test interrupted"), self.status)
169 scroller.quit()
170
171 return scroller.exit_code

Subscribers

People subscribed via source and target branches