summaryrefslogtreecommitdiffstats
path: root/tests/QtDeclarative
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-12-17 15:30:18 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-12-17 19:16:56 -0200
commit3b61f88a1fe16d1abdbc9f35ccb14ad5544b4c5e (patch)
treefcfffdaaaea1ac56d37b0961a222a9f25899897a /tests/QtDeclarative
parent53e472c5ef5423d51d008e13b81b351af6f07bf9 (diff)
downloadpyside-3b61f88a1fe16d1abdbc9f35ccb14ad5544b4c5e.tar.gz
pyside-3b61f88a1fe16d1abdbc9f35ccb14ad5544b4c5e.tar.xz
pyside-3b61f88a1fe16d1abdbc9f35ccb14ad5544b4c5e.zip
Fix QML tests on Windows.
Diffstat (limited to 'tests/QtDeclarative')
-rw-r--r--tests/QtDeclarative/bug_451.py2
-rw-r--r--tests/QtDeclarative/bug_456.py2
-rw-r--r--tests/QtDeclarative/connect_python_qml.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/QtDeclarative/bug_451.py b/tests/QtDeclarative/bug_451.py
index 60e8dcc..c75eaa7 100644
--- a/tests/QtDeclarative/bug_451.py
+++ b/tests/QtDeclarative/bug_451.py
@@ -42,7 +42,7 @@ class TestBug(unittest.TestCase):
obj = PythonObject()
context = view.rootContext()
context.setContextProperty("python", obj)
- view.setSource(adjust_filename('bug_451.qml', __file__))
+ view.setSource(QtCore.QUrl.fromLocalFile(adjust_filename('bug_451.qml', __file__)))
root = view.rootObject()
root.simpleFunction()
self.assertEqual(obj.called, "simpleFunction")
diff --git a/tests/QtDeclarative/bug_456.py b/tests/QtDeclarative/bug_456.py
index 178ea7d..262b82e 100644
--- a/tests/QtDeclarative/bug_456.py
+++ b/tests/QtDeclarative/bug_456.py
@@ -29,7 +29,7 @@ class TestConnectionWithInvalidSignature(TimedQApplication):
context = view.rootContext()
context.setContextProperty("rotatevalue", rotatevalue)
- view.setSource(adjust_filename('bug_456.qml', __file__))
+ view.setSource(QtCore.QUrl.fromLocalFile(adjust_filename('bug_456.qml', __file__)))
root = view.rootObject()
button = root.findChild(QtCore.QObject, "buttonMouseArea")
view.show()
diff --git a/tests/QtDeclarative/connect_python_qml.py b/tests/QtDeclarative/connect_python_qml.py
index bb50515..e8180f7 100644
--- a/tests/QtDeclarative/connect_python_qml.py
+++ b/tests/QtDeclarative/connect_python_qml.py
@@ -16,7 +16,7 @@ class TestConnectionWithInvalidSignature(TimedQApplication):
self.buttonClicked = False
self.buttonFailClicked = False
view = QtDeclarative.QDeclarativeView()
- view.setSource(QtCore.QUrl(adjust_filename('connect_python_qml.qml', __file__)))
+ view.setSource(QtCore.QUrl.fromLocalFile(adjust_filename('connect_python_qml.qml', __file__)))
root = view.rootObject()
button = root.findChild(QtCore.QObject, "buttonMouseArea")
self.assertRaises(TypeError, QtCore.QObject.connect, [button,QtCore.SIGNAL('clicked()'), self.onButtonFailClicked])