diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-03-11 15:57:27 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2011-03-16 16:34:26 -0300 |
commit | b1a1f61c64282302b09d31ad2aa550200a7acee7 (patch) | |
tree | dec5f13b8163dd09f4e97ff0b5ef845af049acd9 | |
parent | 9a7733ef8cadc7cab88f420ee7dd1a504047b325 (diff) | |
download | pyside-b1a1f61c64282302b09d31ad2aa550200a7acee7.tar.gz pyside-b1a1f61c64282302b09d31ad2aa550200a7acee7.tar.xz pyside-b1a1f61c64282302b09d31ad2aa550200a7acee7.zip |
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.py | 21 |
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 0000000..f3d0b59 --- /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() + |