Add unittest for QFontDialog
This commit is contained in:
parent
6c086e845e
commit
ecb715ae00
1 changed files with 22 additions and 0 deletions
22
tests/qtgui/qfontdialog_test.py
Normal file
22
tests/qtgui/qfontdialog_test.py
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
import unittest
|
||||||
|
import sys
|
||||||
|
|
||||||
|
from PySide import QtGui
|
||||||
|
from PySide import QtCore
|
||||||
|
|
||||||
|
from helper import TimedQApplication
|
||||||
|
|
||||||
|
class TestFontDialog(TimedQApplication):
|
||||||
|
|
||||||
|
def testGetFont(self):
|
||||||
|
QtGui.QFontDialog.getFont()
|
||||||
|
|
||||||
|
def testGetFontQDialog(self):
|
||||||
|
QtGui.QFontDialog.getFont(QtGui.QFont("FreeSans",10))
|
||||||
|
|
||||||
|
def testGetFontQDialogQString(self):
|
||||||
|
QtGui.QFontDialog.getFont(QtGui.QFont("FreeSans",10), None, "Select font")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue