summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 5472865..4f381ff 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 0000000..10780ce
--- /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()