summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-09-06 11:06:26 -0300
committerRenato Filho <renato.filho@openbossa.org>2011-09-06 15:06:27 -0300
commitd01f3bd04cf3bd764e8fdd4f291c9875aa449b60 (patch)
tree0295c910274cfddd6765ac1f10695f6a77dbb3ce
parent18f860962c9e844fa6fe1e1e8d1e53dd5265fa46 (diff)
downloadpyside-d01f3bd04cf3bd764e8fdd4f291c9875aa449b60.tar.gz
pyside-d01f3bd04cf3bd764e8fdd4f291c9875aa449b60.tar.xz
pyside-d01f3bd04cf3bd764e8fdd4f291c9875aa449b60.zip
Create unit test for bug #998.
Reviewed by: Hugo Parente <hugo.lima@openbossa.org> Lauro Neto <lauro.neto@openbossa.org>
-rw-r--r--tests/QtGui/CMakeLists.txt1
-rw-r--r--tests/QtGui/bug_998.py10
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt
index 75f576f..f8fbee0 100644
--- a/tests/QtGui/CMakeLists.txt
+++ b/tests/QtGui/CMakeLists.txt
@@ -76,6 +76,7 @@ PYSIDE_TEST(bug_972.py)
PYSIDE_TEST(bug_979.py)
PYSIDE_TEST(bug_988.py)
PYSIDE_TEST(bug_991.py)
+PYSIDE_TEST(bug_998.py)
PYSIDE_TEST(customproxywidget_test.py)
PYSIDE_TEST(deepcopy_test.py)
PYSIDE_TEST(event_filter_test.py)
diff --git a/tests/QtGui/bug_998.py b/tests/QtGui/bug_998.py
new file mode 100644
index 0000000..d5ea3b2
--- /dev/null
+++ b/tests/QtGui/bug_998.py
@@ -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()