summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qmlmoduleplugin/plugin/plugin.cpp6
-rw-r--r--tests/auto/declarative/qmlmoduleplugin/tst_qmlmoduleplugin.cpp1
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/declarative/qmlmoduleplugin/plugin/plugin.cpp b/tests/auto/declarative/qmlmoduleplugin/plugin/plugin.cpp
index 4bb9713..a4e47f7 100644
--- a/tests/auto/declarative/qmlmoduleplugin/plugin/plugin.cpp
+++ b/tests/auto/declarative/qmlmoduleplugin/plugin/plugin.cpp
@@ -48,7 +48,10 @@ class MyPluginType : public QObject
Q_PROPERTY(int value READ value WRITE setValue)
public:
- MyPluginType(QObject *parent=0) : QObject(parent) { }
+ MyPluginType(QObject *parent=0) : QObject(parent)
+ {
+ qWarning("import worked");
+ }
int value() const { return v; }
void setValue(int i) { v = i; }
@@ -67,7 +70,6 @@ class MyPlugin : public QmlModulePlugin
public:
QStringList keys() const
{
-qDebug() << "import worked";
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 1ca96a6..a212610 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, "import worked");
QmlComponent component(&engine, TEST_FILE("plugin.qml"));
VERIFY_ERRORS(0);
QObject *object = component.create();