aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/QtGui/qfontmetrics_test.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/QtGui/qfontmetrics_test.py b/tests/QtGui/qfontmetrics_test.py
index 7964d91d4..96c022fc1 100644
--- a/tests/QtGui/qfontmetrics_test.py
+++ b/tests/QtGui/qfontmetrics_test.py
@@ -185,5 +185,15 @@ class FSizeTest(QFontMetricsFTest):
'PySide by INdT', 20, ['aaaa', 'ase'])
+class QCharTest(QFontMetricsFTest):
+
+ def testBoundingRect(self):
+ retCh = self.metrics.boundingRectChar('a')
+ self.assertEqual(type(retCh), QRectF)
+
+ def testWith(self):
+ retCh = self.metrics.widthChar('a')
+ self.assert_(retCh > 0)
+
if __name__ == '__main__':
unittest.main()