summaryrefslogtreecommitdiffstats
path: root/tests/QtWebKit/qml_plugin_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtWebKit/qml_plugin_test.py')
-rw-r--r--tests/QtWebKit/qml_plugin_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/QtWebKit/qml_plugin_test.py b/tests/QtWebKit/qml_plugin_test.py
index 607b88f..1a7b703 100644
--- a/tests/QtWebKit/qml_plugin_test.py
+++ b/tests/QtWebKit/qml_plugin_test.py
@@ -1,4 +1,5 @@
+import os
import sys
import unittest
@@ -46,7 +47,7 @@ class TestPlugin(UsesQApplication):
view.page().setPluginFactory(fac)
QWebSettings.globalSettings().setAttribute(QWebSettings.PluginsEnabled, True)
- view.load(QUrl('./qmlplugin/index.html'))
+ view.load(QUrl(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'qmlplugin', 'index.html')))
view.resize(840, 600)
view.show()