Created unit test for bug #448.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Lauro Neto <lauro.neto@openbossa.org>
This commit is contained in:
parent
1f2696e9e7
commit
7a6c33e90b
2 changed files with 21 additions and 0 deletions
|
|
@ -1,2 +1,3 @@
|
||||||
|
PYSIDE_TEST(bug_448.py)
|
||||||
PYSIDE_TEST(webpage_test.py)
|
PYSIDE_TEST(webpage_test.py)
|
||||||
PYSIDE_TEST(webview_test.py)
|
PYSIDE_TEST(webview_test.py)
|
||||||
|
|
|
||||||
20
tests/QtWebKit/bug_448.py
Normal file
20
tests/QtWebKit/bug_448.py
Normal file
|
|
@ -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()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue