14.18: Export As for PNG, JPEG and PDF, sized, over a checkerboard
This commit is contained in:
26 files changed
+1352
-688
No files matched your search
@@ -88,10 +88,10 @@ void AcceptanceProjectTests::cropSizesAndExports()
|
||||
QCOMPARE(QImage(app.path("scene.png")).size(), QSize(600, 300));
|
||||
desk.replies = {app.path("scene.jpg")};
|
||||
done = false;
|
||||
controller.exportJPEG([&done] { done = true; });
|
||||
controller.exportAs(ExportFormat::jpeg, [&done] { done = true; });
|
||||
QTRY_VERIFY(app.window.findChild<QDialog *>());
|
||||
app.shot(QStringLiteral("11-export-jpeg"));
|
||||
QPushButton *exported = app.window.findChild<QDialog *>()->findChild<QPushButton *>(QStringLiteral("jpegExport"));
|
||||
QPushButton *exported = app.window.findChild<QDialog *>()->findChild<QPushButton *>(QStringLiteral("exportExport"));
|
||||
QVERIFY(exported);
|
||||
QTRY_VERIFY_WITH_TIMEOUT(exported->isEnabled(), 30000);
|
||||
exported->click();
|
||||
|
||||
Reference in new issue
Block a user