summaryrefslogtreecommitdiffstats
path: root/tests/QtUiTools
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtUiTools')
-rw-r--r--tests/QtUiTools/CMakeLists.txt1
-rw-r--r--tests/QtUiTools/bug_392.py19
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/QtUiTools/CMakeLists.txt b/tests/QtUiTools/CMakeLists.txt
index 9ede81f..7cb8b6a 100644
--- a/tests/QtUiTools/CMakeLists.txt
+++ b/tests/QtUiTools/CMakeLists.txt
@@ -1,4 +1,5 @@
PYSIDE_TEST(bug_360.py)
PYSIDE_TEST(bug_376.py)
+PYSIDE_TEST(bug_392.py)
PYSIDE_TEST(uiloader_test.py)
PYSIDE_TEST(ui_test.py)
diff --git a/tests/QtUiTools/bug_392.py b/tests/QtUiTools/bug_392.py
new file mode 100644
index 0000000..ebda08c
--- /dev/null
+++ b/tests/QtUiTools/bug_392.py
@@ -0,0 +1,19 @@
+import unittest
+import os
+from helper import UsesQApplication
+
+from PySide import QtCore, QtGui
+from PySide.QtUiTools import QUiLoader
+
+class BugTest(UsesQApplication):
+ def testCase(self):
+ w = QtGui.QWidget()
+ loader = QUiLoader()
+
+ filePath = os.path.join(os.path.dirname(__file__), 'action.ui')
+ result = loader.load(filePath, w)
+ self.assertEqual(type(result.statusbar.actionFoo), QtGui.QAction)
+
+if __name__ == '__main__':
+ unittest.main()
+