aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_740.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui/bug_740.py')
-rw-r--r--tests/QtGui/bug_740.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/QtGui/bug_740.py b/tests/QtGui/bug_740.py
new file mode 100644
index 000000000..634a99e25
--- /dev/null
+++ b/tests/QtGui/bug_740.py
@@ -0,0 +1,13 @@
+import unittest
+
+from helper import UsesQApplication
+from PySide.QtCore import QSize
+from PySide.QtGui import QBitmap, QImage, QLabel
+
+class TestQBitmap(UsesQApplication):
+ def testFromDataMethod(self):
+ dataBits = '\x38\x28\x38\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\xfe\xfe\x7c\x7c\x38\x38\x10\x10'
+ bim = QBitmap.fromData(QSize(8, 48), dataBits, QImage.Format_Mono) # missing function
+
+if __name__ == '__main__':
+ unittest.main()