aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/qimage_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui/qimage_test.py')
-rw-r--r--tests/QtGui/qimage_test.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/QtGui/qimage_test.py b/tests/QtGui/qimage_test.py
new file mode 100644
index 000000000..d8aa545af
--- /dev/null
+++ b/tests/QtGui/qimage_test.py
@@ -0,0 +1,20 @@
+
+'''Test cases for QImage'''
+
+import unittest
+
+from PySide.QtGui import QImage
+
+from helper import UsesQApplication
+
+class QImageTest(UsesQApplication):
+ '''Test case for calling setPixel with float as argument'''
+
+ def testQImageStringBuffer(self):
+ '''Test if the QImage signatures receiving string buffers exist.'''
+ img0 = QImage('', 100, 100, QImage.Format_ARGB32)
+ img1 = QImage('', 100, 100, 0, QImage.Format_ARGB32)
+
+if __name__ == '__main__':
+ unittest.main()
+