aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-11-03 12:12:20 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-11-03 17:39:26 -0300
commit7a6c33e90bea643da038f99d9fc74e3267998937 (patch)
tree6582c525d8df6a1b659bbdaa4f8136f476eb25af /tests
parent1f2696e9e77ba252f023776972fbf253c2f7a203 (diff)
Created unit test for bug #448.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Neto <lauro.neto@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/QtWebKit/CMakeLists.txt1
-rw-r--r--tests/QtWebKit/bug_448.py20
2 files changed, 21 insertions, 0 deletions
diff --git a/tests/QtWebKit/CMakeLists.txt b/tests/QtWebKit/CMakeLists.txt
index 54728656f..4f381ff52 100644
--- a/tests/QtWebKit/CMakeLists.txt
+++ b/tests/QtWebKit/CMakeLists.txt
@@ -1,2 +1,3 @@
+PYSIDE_TEST(bug_448.py)
PYSIDE_TEST(webpage_test.py)
PYSIDE_TEST(webview_test.py)
diff --git a/tests/QtWebKit/bug_448.py b/tests/QtWebKit/bug_448.py
new file mode 100644
index 000000000..10780ce55
--- /dev/null
+++ b/tests/QtWebKit/bug_448.py
@@ -0,0 +1,20 @@
+
+'''Test cases for bug: http://bugs.openbossa.org/show_bug.cgi?id=448'''
+
+import unittest
+import sys
+
+from PySide.QtGui import QApplication
+from PySide.QtWebKit import QWebView
+
+class Bug448(unittest.TestCase):
+ def onError(self, erros):
+ pass
+
+ def testReturnOwnership(self):
+ app = QApplication(sys.argv)
+ webview = QWebView()
+ webview.page().networkAccessManager().sslErrors.connect(self.onError)
+
+if __name__ == '__main__':
+ unittest.main()