aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-06-15 13:34:42 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-06-17 14:04:11 -0300
commit4cca85f52585b17f53e26f81ca26504fe561e578 (patch)
treee97a82cc35ba1e785e6afe2aa8dd66978beea0e2 /tests
parentef7eb0fca443ca1df624034c6e6ede597f2dab3c (diff)
Implement inject-code to functions using QChar in QFontMetrics and
QFontMetricsF Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
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 7964d91d..96c022fc 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()