From 57894b73b7c1764a28d290a5cc4a98942b49f3c4 Mon Sep 17 00:00:00 2001 From: Lauro Neto Date: Mon, 8 Aug 2011 17:06:28 -0300 Subject: Fix plugin test Reviewer: Marcelo Lira Reviewer: Hugo Lima --- tests/QtWebKit/CMakeLists.txt | 1 + tests/QtWebKit/qml_plugin_test.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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() -- cgit v1.2.3