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

Proposed by Martin Pitt on 2014-01-07
Status: Merged
Approved by: Martin Pitt on 2014-01-07
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/ (+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) 2014-01-07 Approve on 2014-01-07
PS Jenkins bot continuous-integration Approve on 2014-01-07
Review via email:

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.
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
1=== modified file 'tests/autopilot/tests/'
2--- tests/autopilot/tests/ 2013-06-27 09:30:35 +0000
3+++ tests/autopilot/tests/ 2014-01-07 11:19:02 +0000
4@@ -136,3 +136,13 @@
5 # select by buffer contents
6 w ='This is a test application.')
7 self.assertEqual(w.BuilderName, 'textview_demo')
9+ def test_stress(self):
10+ """Query lots widgets in a tight loop"""
12+ for i in range(300):
13+ w ='button_greet')
14+ self.assertEqual(w.label, 'Greet')
16+ w ='GtkButton', label='gtk-quit')
17+ self.assertEqual(w.use_stock, True)


People subscribed via source and target branches

to all changes: