Created unit test for bug 589.
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
parent
0f6a504dfb
commit
fb9fdba329
2 changed files with 20 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ PYSIDE_TEST(bug_549.py)
|
||||||
PYSIDE_TEST(bug_569.py)
|
PYSIDE_TEST(bug_569.py)
|
||||||
PYSIDE_TEST(bug_576.py)
|
PYSIDE_TEST(bug_576.py)
|
||||||
PYSIDE_TEST(bug_585.py)
|
PYSIDE_TEST(bug_585.py)
|
||||||
|
PYSIDE_TEST(bug_589.py)
|
||||||
PYSIDE_TEST(customproxywidget_test.py)
|
PYSIDE_TEST(customproxywidget_test.py)
|
||||||
PYSIDE_TEST(deepcopy_test.py)
|
PYSIDE_TEST(deepcopy_test.py)
|
||||||
PYSIDE_TEST(float_to_int_implicit_conversion_test.py)
|
PYSIDE_TEST(float_to_int_implicit_conversion_test.py)
|
||||||
|
|
|
||||||
19
tests/QtGui/bug_589.py
Normal file
19
tests/QtGui/bug_589.py
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
# trimmed down diagramscene.py to demonstrate crash in sizeHint()
|
||||||
|
|
||||||
|
import sys
|
||||||
|
from PySide import QtCore, QtGui
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
class CustomWidget(QtGui.QGraphicsProxyWidget):
|
||||||
|
def itemChange(self, eventType, value):
|
||||||
|
QtGui.QGraphicsProxyWidget.itemChange(self, eventType, value)
|
||||||
|
|
||||||
|
class Bug589(unittest.TestCase):
|
||||||
|
def testCase(self):
|
||||||
|
widget = QtGui.QGraphicsProxyWidget()
|
||||||
|
custom = CustomWidget()
|
||||||
|
custom.setParentItem(widget)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
app = QtGui.QApplication(sys.argv)
|
||||||
|
unittest.main()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue