Clicked text on its baseline, live text on the Move tool's double click, SVG import (12.11c)

This commit is contained in:
雷电芽衣 committed 2026-09-29 10:55:10 -04:00
1 parent 008493b0a3
commit 8fbb104c48
34 files changed
+572 -47

No files matched your search

+7 -1
View File
@@ -2,6 +2,7 @@
#include <QProcess>
#include <QTemporaryDir>
#include <QXmlStreamReader>
#include <QMimeDatabase>
#include <QtTest>
// The desktop entry, the project type, and an install.
@@ -70,7 +71,12 @@ void DesktopIntegrationTests::theEntryOpensSwiftsDocumentTypes()
QCOMPARE(keys.value("Terminal"), QString("false"));
QVERIFY(keys.value("Categories").split(QLatin1Char(';')).contains("Graphics"));
// Swift's two document types: its projects, then four pictures.
QCOMPARE(keys.value("MimeType"), QString("application/x-compositor-project;image/png;image/jpeg;image/heic;image/tiff;image/vnd.adobe.photoshop;image/x-photoshop-large-image;image/x-dcraw;"));
QCOMPARE(keys.value("MimeType"), QString("application/x-compositor-project;image/png;image/jpeg;image/heic;image/tiff;image/vnd.adobe.photoshop;image/x-photoshop-large-image;image/svg+xml;image/svg+xml-compressed;image/x-dcraw;"));
// Each SVG suffix's type as the system names it.
for (const char *name : {"icon.svg", "icon.svgz"}) {
const QString type = QMimeDatabase().mimeTypeForFile(QString::fromLatin1(name), QMimeDatabase::MatchExtension).name();
QVERIFY2(keys.value("MimeType").split(';').contains(type), qPrintable(type));
}
}
void DesktopIntegrationTests::aProjectFolderIsAType()