aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp
diff options
context:
space:
mode:
authorMarco Benelli <marco.benelli@theqtcompany.com>2015-12-04 15:56:07 +0100
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-12-17 14:06:47 +0000
commit4b018848f7a7055976895de8a4b8208b58a36fac (patch)
tree0a7f67cd91437e5ef806446d802b96476c9e3e86 /tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp
parentf89d8294f930914a8f7b933719596e2e3ebf1773 (diff)
qml: preserve composite singleton types.
Composite singleton types used to always have version -1,-1; regardless of what is written in qmldir. Change-Id: Ia193e73695e57095f6a09b97768805f2f23cd56a Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Diffstat (limited to 'tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp')
-rw-r--r--tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp b/tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp
index 28d687bd1c..eb05e8cde7 100644
--- a/tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp
+++ b/tests/auto/qml/qmlplugindump/tst_qmlplugindump.cpp
@@ -47,6 +47,7 @@ public:
private slots:
void initTestCase();
void builtins();
+ void singleton();
private:
QString qmlplugindumpPath;
@@ -102,6 +103,19 @@ void tst_qmlplugindump::builtins()
QVERIFY(result.contains(QLatin1String("Module {")));
}
+void tst_qmlplugindump::singleton()
+{
+ QProcess dumper;
+ QStringList args;
+ args << QLatin1String("tests.dumper.CompositeSingleton") << QLatin1String("1.0")
+ << QLatin1String(".");
+ dumper.start(qmlplugindumpPath, args);
+ dumper.waitForFinished();
+
+ const QString &result = dumper.readAllStandardOutput();
+ QVERIFY(result.contains(QLatin1String("exports: [\"Singleton 1.0\"]")));
+}
+
QTEST_MAIN(tst_qmlplugindump)
#include "tst_qmlplugindump.moc"