aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2011-08-08 17:06:28 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:42 -0300
commit57894b73b7c1764a28d290a5cc4a98942b49f3c4 (patch)
treeef67764b6cd8eac153f3e81434e106e7dde60902 /tests
parenta8e05ed6fe93de2480b82961036353421a7677af (diff)
Fix plugin test
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Hugo Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/QtWebKit/CMakeLists.txt1
-rw-r--r--tests/QtWebKit/qml_plugin_test.py3
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()