summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2011-08-08 17:06:28 -0300
committerLauro Neto <lauro.neto@openbossa.org>2011-08-09 13:39:04 -0300
commit038b184c85c42a1ab398b5ed173f21f71991230a (patch)
tree7a7eab602920e418f7a0889189a8e2798491dd8e
parentaea22e98b9580350897b9b3173be03ea9988f0c3 (diff)
downloadpyside-038b184c85c42a1ab398b5ed173f21f71991230a.tar.gz
pyside-038b184c85c42a1ab398b5ed173f21f71991230a.tar.xz
pyside-038b184c85c42a1ab398b5ed173f21f71991230a.zip
Fix plugin test
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Hugo Lima <hugo.lima@openbossa.org>
-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 b3a86ca..f9b4663 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 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()