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

Subscribers

People subscribed via source and target branches

to all changes: