summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlmoduleplugin
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qmlmoduleplugin')
-rw-r--r--tests/auto/declarative/qmlmoduleplugin/plugin/plugin.cpp5
-rw-r--r--tests/auto/declarative/qmlmoduleplugin/tst_qmlmoduleplugin.cpp1
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlmoduleplugin/plugin/plugin.cpp b/tests/auto/declarative/qmlmoduleplugin/plugin/plugin.cpp
index a4e47f7..10adda0 100644
--- a/tests/auto/declarative/qmlmoduleplugin/plugin/plugin.cpp
+++ b/tests/auto/declarative/qmlmoduleplugin/plugin/plugin.cpp
@@ -68,6 +68,11 @@ class MyPlugin : public QmlModulePlugin
{
Q_OBJECT
public:
+ MyPlugin()
+ {
+ qWarning("plugin created");
+ }
+
QStringList keys() const
{
return QStringList() << QLatin1String("com.nokia.AutoTestQmlPluginType");
diff --git a/tests/auto/declarative/qmlmoduleplugin/tst_qmlmoduleplugin.cpp b/tests/auto/declarative/qmlmoduleplugin/tst_qmlmoduleplugin.cpp
index a212610..3f97abd 100644
--- a/tests/auto/declarative/qmlmoduleplugin/tst_qmlmoduleplugin.cpp
+++ b/tests/auto/declarative/qmlmoduleplugin/tst_qmlmoduleplugin.cpp
@@ -103,6 +103,7 @@ inline QUrl TEST_FILE(const QString &filename)
void tst_qmlmoduleplugin::importsPlugin()
{
QmlEngine engine;
+ QTest::ignoreMessage(QtWarningMsg, "plugin created");
QTest::ignoreMessage(QtWarningMsg, "import worked");
QmlComponent component(&engine, TEST_FILE("plugin.qml"));
VERIFY_ERRORS(0);