Merge lp:~pitti/autopilot-gtk/prop-stress-test into lp:autopilot-gtk

Proposed by Martin Pitt
Status: Merged
Approved by: Martin Pitt
Approved revision: 69
Merged at revision: 69
Proposed branch: lp:~pitti/autopilot-gtk/prop-stress-test
Merge into: lp:autopilot-gtk
Diff against target: 17 lines (+10/-0)
1 file modified
tests/autopilot/tests/test_properties.py (+10/-0)
To merge this branch: bzr merge lp:~pitti/autopilot-gtk/prop-stress-test
Reviewer Review Type Date Requested Status
Víctor R. Ruiz (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+200651@code.launchpad.net

Commit message

Add stress test case for querying lots of properties in a tight loop.

Description of the change

This adds a stress test case to reproduce/verify bug 1266689.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :

Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/autopilot/tests/test_properties.py'
--- tests/autopilot/tests/test_properties.py 2013-06-27 09:30:35 +0000
+++ tests/autopilot/tests/test_properties.py 2014-01-07 11:19:02 +0000
@@ -136,3 +136,13 @@
136 # select by buffer contents136 # select by buffer contents
137 w = self.app.select_single(buffer='This is a test application.')137 w = self.app.select_single(buffer='This is a test application.')
138 self.assertEqual(w.BuilderName, 'textview_demo')138 self.assertEqual(w.BuilderName, 'textview_demo')
139
140 def test_stress(self):
141 """Query lots widgets in a tight loop"""
142
143 for i in range(300):
144 w = self.app.select_single(BuilderName='button_greet')
145 self.assertEqual(w.label, 'Greet')
146
147 w = self.app.select_single('GtkButton', label='gtk-quit')
148 self.assertEqual(w.use_stock, True)

Subscribers

People subscribed via source and target branches

to all changes: