Unit test for bug #392.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
parent
44af047030
commit
846c9a151f
2 changed files with 20 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
PYSIDE_TEST(bug_360.py)
|
PYSIDE_TEST(bug_360.py)
|
||||||
PYSIDE_TEST(bug_376.py)
|
PYSIDE_TEST(bug_376.py)
|
||||||
|
PYSIDE_TEST(bug_392.py)
|
||||||
PYSIDE_TEST(uiloader_test.py)
|
PYSIDE_TEST(uiloader_test.py)
|
||||||
PYSIDE_TEST(ui_test.py)
|
PYSIDE_TEST(ui_test.py)
|
||||||
|
|
|
||||||
19
tests/QtUiTools/bug_392.py
Normal file
19
tests/QtUiTools/bug_392.py
Normal file
|
|
@ -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()
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue