Create unit test for bug #998.
Reviewed by: Hugo Parente <hugo.lima@openbossa.org>
Lauro Neto <lauro.neto@openbossa.org>
This commit is contained in:
parent
bfcc30ab86
commit
f7b0dca2cb
2 changed files with 11 additions and 0 deletions
|
|
@ -76,6 +76,7 @@ PYSIDE_TEST(bug_972.py)
|
||||||
PYSIDE_TEST(bug_979.py)
|
PYSIDE_TEST(bug_979.py)
|
||||||
PYSIDE_TEST(bug_988.py)
|
PYSIDE_TEST(bug_988.py)
|
||||||
PYSIDE_TEST(bug_991.py)
|
PYSIDE_TEST(bug_991.py)
|
||||||
|
PYSIDE_TEST(bug_998.py)
|
||||||
PYSIDE_TEST(customproxywidget_test.py)
|
PYSIDE_TEST(customproxywidget_test.py)
|
||||||
PYSIDE_TEST(deepcopy_test.py)
|
PYSIDE_TEST(deepcopy_test.py)
|
||||||
PYSIDE_TEST(event_filter_test.py)
|
PYSIDE_TEST(event_filter_test.py)
|
||||||
|
|
|
||||||
10
tests/QtGui/bug_998.py
Normal file
10
tests/QtGui/bug_998.py
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
import unittest
|
||||||
|
from PySide.QtGui import QApplication
|
||||||
|
|
||||||
|
class TestBug998 (unittest.TestCase):
|
||||||
|
def testNoFocusWindow(self):
|
||||||
|
widget = QApplication.focusWidget()
|
||||||
|
self.assertTrue(widget == None)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue