Fixes bugs 739 and 752.
Bug #739 - Method "QTransform::map(qreal x, qreal y, qreal* tx, qreal* ty) const" missing Bug #752 - Method "void QSplitter::getRange(int index, int* min, int* max) const" missing Also added unit tests.
This commit is contained in:
parent
a513d831cd
commit
2c6a44feee
5 changed files with 74 additions and 4 deletions
|
|
@ -95,6 +95,7 @@ PYSIDE_TEST(qpushbutton_test.py)
|
|||
PYSIDE_TEST(qradialgradient_test.py)
|
||||
PYSIDE_TEST(qregion_test.py)
|
||||
PYSIDE_TEST(qshortcut_test.py)
|
||||
PYSIDE_TEST(qsplitter_test.py)
|
||||
PYSIDE_TEST(qstandarditemmodel_test.py)
|
||||
PYSIDE_TEST(qstring_qkeysequence_test.py)
|
||||
PYSIDE_TEST(qstyle_test.py)
|
||||
|
|
@ -104,6 +105,7 @@ PYSIDE_TEST(qtextedit_test.py)
|
|||
PYSIDE_TEST(qtextedit_signal_test.py)
|
||||
PYSIDE_TEST(qtoolbar_test.py)
|
||||
PYSIDE_TEST(qtoolbox_test.py)
|
||||
PYSIDE_TEST(qtransform_test.py)
|
||||
PYSIDE_TEST(qvariant_test.py)
|
||||
PYSIDE_TEST(qvalidator_test.py)
|
||||
PYSIDE_TEST(qwidget_setlayout_test.py)
|
||||
|
|
|
|||
16
tests/QtGui/qsplitter_test.py
Normal file
16
tests/QtGui/qsplitter_test.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import unittest
|
||||
from PySide.QtGui import QSplitter
|
||||
|
||||
from helper import UsesQApplication
|
||||
|
||||
class QSplitterTest(UsesQApplication):
|
||||
|
||||
def testGetRange(self):
|
||||
splitter = QSplitter()
|
||||
_min, _max = splitter.getRange(0)
|
||||
self.assert_(isinstance(_min, int))
|
||||
self.assert_(isinstance(_max, int))
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
16
tests/QtGui/qtransform_test.py
Normal file
16
tests/QtGui/qtransform_test.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import unittest
|
||||
from PySide.QtGui import QTransform
|
||||
|
||||
class QTransformTest(unittest.TestCase):
|
||||
|
||||
def testMap(self):
|
||||
transform = QTransform()
|
||||
values = (10.0, 20.0)
|
||||
tx, ty = transform.map(*values)
|
||||
self.assert_(isinstance(tx, float))
|
||||
self.assert_(isinstance(ty, float))
|
||||
self.assertEqual((tx, ty), values)
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue