summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlmoduleplugin
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-01-14 03:29:21 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-01-14 03:29:21 (GMT)
commit57d7eef906df1ed82b9722e93cb58420460684ed (patch)
tree00e205eeadb928b4fc3fe398e5219daaeff4a3af /tests/auto/declarative/qmlmoduleplugin
parent45cbe29e07b5651fbd844fb902db200ce463b4e3 (diff)
downloadQt-57d7eef906df1ed82b9722e93cb58420460684ed.zip
Qt-57d7eef906df1ed82b9722e93cb58420460684ed.tar.gz
Qt-57d7eef906df1ed82b9722e93cb58420460684ed.tar.bz2
More clarity if test fails.
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);