14.23: WebP import

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 12:14:13 -04:00
1 parent b10a9c5b71
commit f7498108c5
13 files changed
+93 -16

No files matched your search

+2 -2
View File
@@ -173,7 +173,7 @@ void ImageFileDropTests::aPictureIsCopiedToAFileFirst()
void ImageFileDropTests::whatCannotBeReadIsSaid()
{
const QString said = "Some dropped items couldn’t be read. Drag JPEG, PNG, HEIC, TIFF, or Photoshop (PSD) files from the file manager.";
const QString said = "Some dropped items couldn’t be read. Drag JPEG, PNG, HEIC, TIFF, WebP, or Photoshop (PSD) files from the file manager.";
EditorSession session;
bool done = false;
std::unique_ptr<QMimeData> link(files({}, {QUrl("https://example.com/page")}));
@@ -354,7 +354,7 @@ void ImageFileDropTests::aPictureThatCannotBeKeptIsUnreadable()
ImageFileDrop::importProviders(data, session, std::nullopt, nullptr, std::nullopt, [&done] { done = true; });
QCOMPARE(setrlimit(RLIMIT_FSIZE, &room), 0);
QTRY_VERIFY(done);
QCOMPARE(session.importError(), std::optional<QString>("Some dropped items couldn’t be read. Drag JPEG, PNG, HEIC, TIFF, or Photoshop (PSD) files from the file manager."));
QCOMPARE(session.importError(), std::optional<QString>("Some dropped items couldn’t be read. Drag JPEG, PNG, HEIC, TIFF, WebP, or Photoshop (PSD) files from the file manager."));
QVERIFY(!session.document());
QCOMPARE(dropped(), before);
}