aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-03-11 15:57:27 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:03 -0300
commitd3fb0b38b76eb9a08a60c1a5667388afe9521fea (patch)
tree1330d9c09dac3776500f5b9e7de499595649a008
parent32fb36f97ac76ef23271049dbb6642bf7bfed557 (diff)
Created unit test for bug #711.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
-rw-r--r--tests/QtGui/bug_711.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/QtGui/bug_711.py b/tests/QtGui/bug_711.py
new file mode 100644
index 000000000..f3d0b597d
--- /dev/null
+++ b/tests/QtGui/bug_711.py
@@ -0,0 +1,21 @@
+import unittest
+import sys
+from PySide.QtGui import QToolBar, QApplication, QAction, QToolButton
+
+class TestLabelPixmap(unittest.TestCase):
+ def testReference(self):
+ toolbar = QToolBar()
+
+ for i in xrange(20):
+ toolbar.addAction(QAction("Action %d" % i, None))
+
+ buttons = toolbar.findChildren(QToolButton, "")
+ toolbar.clear()
+
+ for b in buttons:
+ self.assertRaises(RuntimeError, b.objectName)
+
+if __name__ == '__main__':
+ app = QApplication([])
+ unittest.main()
+