aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-04-13 18:28:04 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:10 -0300
commit6f981476023030723bbad15751bb053a5be60c4c (patch)
tree87ff13aaae34074aa437fe2227f9896487572245 /tests/QtGui
parent0c5809474bf157d020ebd94aa903b3faccae4a6a (diff)
Created unit test for bug #740.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'tests/QtGui')
-rw-r--r--tests/QtGui/CMakeLists.txt1
-rw-r--r--tests/QtGui/bug_740.py13
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt
index ee19a59ee..aa0b2da38 100644
--- a/tests/QtGui/CMakeLists.txt
+++ b/tests/QtGui/CMakeLists.txt
@@ -48,6 +48,7 @@ PYSIDE_TEST(bug_714.py)
PYSIDE_TEST(bug_722.py)
PYSIDE_TEST(bug_728.py)
PYSIDE_TEST(bug_736.py)
+PYSIDE_TEST(bug_740.py)
PYSIDE_TEST(bug_793.py)
PYSIDE_TEST(customproxywidget_test.py)
PYSIDE_TEST(deepcopy_test.py)
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()