summaryrefslogtreecommitdiffstats
path: root/tests/QtDeclarative/qdeclarativenetwork_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtDeclarative/qdeclarativenetwork_test.py')
-rw-r--r--tests/QtDeclarative/qdeclarativenetwork_test.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/QtDeclarative/qdeclarativenetwork_test.py b/tests/QtDeclarative/qdeclarativenetwork_test.py
index a03a484a..459c422b 100644
--- a/tests/QtDeclarative/qdeclarativenetwork_test.py
+++ b/tests/QtDeclarative/qdeclarativenetwork_test.py
@@ -8,11 +8,6 @@ from PySide.QtNetwork import QNetworkAccessManager
from helper import adjust_filename, TimedQApplication
-class MyNetworkAccessManagerFactory(QDeclarativeNetworkAccessManagerFactory):
- def create(self, parent):
- nam = QNetworkAccessManager(parent)
- return nam
-
class TestQDeclarativeNetworkFactory(TimedQApplication):
def setUp(self):
@@ -21,9 +16,8 @@ class TestQDeclarativeNetworkFactory(TimedQApplication):
def testQDeclarativeNetworkFactory(self):
view = QDeclarativeView()
- url = QUrl.fromLocalFile(adjust_filename('network.qml', __file__))
+ url = QUrl.fromLocalFile(adjust_filename('hw.qml', __file__))
- view.engine().setNetworkAccessManagerFactory(MyNetworkAccessManagerFactory())
view.setSource(url)
view.show()