summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-09-30 12:07:04 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-09-30 14:42:40 -0300
commit5222609f31c298f4f729789a0f7764a4496b5ae9 (patch)
tree58ca3079546677bcf158879d289be2e839af7342
parent866c76ff1fd8246ffb1be557670a522dd678050a (diff)
downloadpyside-5222609f31c298f4f729789a0f7764a4496b5ae9.tar.gz
pyside-5222609f31c298f4f729789a0f7764a4496b5ae9.tar.xz
pyside-5222609f31c298f4f729789a0f7764a4496b5ae9.zip
Unit test for bug 390.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
-rw-r--r--tests/QtGui/CMakeLists.txt1
-rw-r--r--tests/QtGui/bug_389.py15
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt
index c8db7a2..f260321 100644
--- a/tests/QtGui/CMakeLists.txt
+++ b/tests/QtGui/CMakeLists.txt
@@ -8,6 +8,7 @@ PYSIDE_TEST(bug_324.py)
PYSIDE_TEST(bug_338.py)
PYSIDE_TEST(bug_363.py)
PYSIDE_TEST(bug_367.py)
+PYSIDE_TEST(bug_389.py)
PYSIDE_TEST(add_action_test.py)
PYSIDE_TEST(customproxywidget_test.py)
PYSIDE_TEST(float_to_int_implicit_conversion_test.py)
diff --git a/tests/QtGui/bug_389.py b/tests/QtGui/bug_389.py
new file mode 100644
index 0000000..b01019a
--- /dev/null
+++ b/tests/QtGui/bug_389.py
@@ -0,0 +1,15 @@
+''' Test bug 389: http://bugs.openbossa.org/show_bug.cgi?id=389'''
+
+import sys
+import unittest
+from helper import UsesQApplication
+from PySide import QtCore,QtGui
+
+class BugTest(UsesQApplication):
+ def testCase(self):
+ s = QtGui.QWidget().style()
+ i = s.standardIcon(QtGui.QStyle.SP_TitleBarMinButton)
+ self.assertEqual(type(i), QtGui.QIcon)
+
+if __name__ == '__main__':
+ unittest.main()