summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2022-12-14 12:29:08 +0100
committerEike Ziller <eike.ziller@qt.io>2022-12-16 08:29:57 +0000
commit34aa8e9e19511e3ef4d1f18ed0601c61e7764fee (patch)
tree19a86d45b8b806a35871eebe605437b575bded6e /tests
parent858d49611333a86dafac621d2116f937efc55e73 (diff)
downloadqt-creator-34aa8e9e19511e3ef4d1f18ed0601c61e7764fee.tar.gz
PluginSpec: Add a "LongDescription" to plugin meta data
The EmacsKeys plugin had a long description with details on what it does, which in principle is a good thing, but shouldn't be shown with e.g. the -version command line argument. Split the description in a short "Description" (name unchanged for compatibility), and a possibly longer "LongDescription", using only the first one for -version, and showing both in the plugin details. Adapt the EmacsKeys plugin meta data. Fixes: QTCREATORBUG-17312 Change-Id: I4a4abf51e5e19b71ee73edb14c6a897fbceaf916 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/extensionsystem/pluginspec/testspecs/spec1.json3
-rw-r--r--tests/auto/extensionsystem/pluginspec/tst_pluginspec.cpp6
2 files changed, 7 insertions, 2 deletions
diff --git a/tests/auto/extensionsystem/pluginspec/testspecs/spec1.json b/tests/auto/extensionsystem/pluginspec/testspecs/spec1.json
index 6f601a6de1..dcd4755a6e 100644
--- a/tests/auto/extensionsystem/pluginspec/testspecs/spec1.json
+++ b/tests/auto/extensionsystem/pluginspec/testspecs/spec1.json
@@ -11,7 +11,8 @@
"blubbblubb",
"end of terms"
],
- "Description" : [
+ "Description" : "This plugin is just a test.",
+ "LongDescription" : [
"This plugin is just a test.",
" it demonstrates the great use of the plugin spec."
],
diff --git a/tests/auto/extensionsystem/pluginspec/tst_pluginspec.cpp b/tests/auto/extensionsystem/pluginspec/tst_pluginspec.cpp
index 6ae8cd9897..bf53e2447a 100644
--- a/tests/auto/extensionsystem/pluginspec/tst_pluginspec.cpp
+++ b/tests/auto/extensionsystem/pluginspec/tst_pluginspec.cpp
@@ -99,7 +99,11 @@ void tst_PluginSpec::read()
QCOMPARE(spec.vendor, QString("The Qt Company Ltd"));
QCOMPARE(spec.copyright, QString("(C) 2015 The Qt Company Ltd"));
QCOMPARE(spec.license, QString("This is a default license bla\nblubbblubb\nend of terms"));
- QCOMPARE(spec.description, QString("This plugin is just a test.\n it demonstrates the great use of the plugin spec."));
+ QCOMPARE(spec.description, QString("This plugin is just a test."));
+ QCOMPARE(
+ spec.longDescription,
+ QString(
+ "This plugin is just a test.\n it demonstrates the great use of the plugin spec."));
QCOMPARE(spec.url, QString("http://www.qt.io"));
PluginDependency dep1;
dep1.name = QString("SomeOtherPlugin");