diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/QtWebKit/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/QtWebKit/qml_plugin_test.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/QtWebKit/CMakeLists.txt b/tests/QtWebKit/CMakeLists.txt index b3a86ca5c..f9b466330 100644 --- a/tests/QtWebKit/CMakeLists.txt +++ b/tests/QtWebKit/CMakeLists.txt @@ -3,6 +3,7 @@ PYSIDE_TEST(bug_694.py) PYSIDE_TEST(bug_803.py) PYSIDE_TEST(bug_899.py) PYSIDE_TEST(qvariantlist_property_test.py) +PYSIDE_TEST(qml_plugin_test.py) PYSIDE_TEST(webpage_test.py) PYSIDE_TEST(webview_test.py) PYSIDE_TEST(webframe_test.py) diff --git a/tests/QtWebKit/qml_plugin_test.py b/tests/QtWebKit/qml_plugin_test.py index 607b88f9b..1a7b703ab 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() |