Fix plugin test
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Hugo Lima <hugo.lima@openbossa.org>
This commit is contained in:
parent
a8e05ed6fe
commit
57894b73b7
2 changed files with 3 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ PYSIDE_TEST(bug_694.py)
|
||||||
PYSIDE_TEST(bug_803.py)
|
PYSIDE_TEST(bug_803.py)
|
||||||
PYSIDE_TEST(bug_899.py)
|
PYSIDE_TEST(bug_899.py)
|
||||||
PYSIDE_TEST(qvariantlist_property_test.py)
|
PYSIDE_TEST(qvariantlist_property_test.py)
|
||||||
|
PYSIDE_TEST(qml_plugin_test.py)
|
||||||
PYSIDE_TEST(webpage_test.py)
|
PYSIDE_TEST(webpage_test.py)
|
||||||
PYSIDE_TEST(webview_test.py)
|
PYSIDE_TEST(webview_test.py)
|
||||||
PYSIDE_TEST(webframe_test.py)
|
PYSIDE_TEST(webframe_test.py)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
|
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
|
@ -46,7 +47,7 @@ class TestPlugin(UsesQApplication):
|
||||||
view.page().setPluginFactory(fac)
|
view.page().setPluginFactory(fac)
|
||||||
QWebSettings.globalSettings().setAttribute(QWebSettings.PluginsEnabled, True)
|
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.resize(840, 600)
|
||||||
view.show()
|
view.show()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue