diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-01-08 07:23:10 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-01-08 07:23:10 (GMT) |
commit | 22d68e991e26ec192c51ce2aea55711b06a2af82 (patch) | |
tree | b7046dcd1e7e6b6b6069d12f37360d6fec55b34a /tests/auto/declarative/qmlmoduleplugin | |
parent | e8fcefbfd5819bc9d8e9764048bdadb0813ce002 (diff) | |
download | Qt-22d68e991e26ec192c51ce2aea55711b06a2af82.zip Qt-22d68e991e26ec192c51ce2aea55711b06a2af82.tar.gz Qt-22d68e991e26ec192c51ce2aea55711b06a2af82.tar.bz2 |
Make it easier to understand if test fails.
Diffstat (limited to 'tests/auto/declarative/qmlmoduleplugin')
-rw-r--r-- | tests/auto/declarative/qmlmoduleplugin/plugin/plugin.cpp | 6 | ||||
-rw-r--r-- | tests/auto/declarative/qmlmoduleplugin/tst_qmlmoduleplugin.cpp | 1 |
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(); |