aboutsummaryrefslogtreecommitdiffstats
path: root/tests
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>2012-03-08 16:47:59 -0300
commit5c7d93abed7ce374c32fbf73b5fe4ee3e00b972b (patch)
treeb7ad551870b0bb8a177899f3497ae626ee53871c /tests
parent58d43d6de9fe449e2abacfd6eb5fedca06ad7ec8 (diff)
Fix QML tests on Windows.
Diffstat (limited to 'tests')
-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 60e8dcce5..c75eaa763 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 178ea7d43..262b82e48 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 bb505156e..e8180f782 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])