#include <QtQuickTemplates2/private/qquickapplicationwindow_p.h>
#include <QtQuickTestUtils/private/qmlutils_p.h>
#include <QtQuickTestUtils/private/visualtestutils_p.h>
Go to the source code of this file.
◆ CLOSE_QUICK_DIALOG
#define CLOSE_QUICK_DIALOG |
( |
| ) |
|
Value: do { \
dialogHelper.dialog->close(); \
QVERIFY(!dialogHelper.dialog->isVisible()); \
QTRY_VERIFY(!dialogHelper.quickDialog->isVisible()); \
} while (false)
Definition at line 50 of file dialogstestutils_p.h.
◆ COMPARE_URL
◆ COMPARE_URLS
#define COMPARE_URLS |
( |
|
actualUrls, |
|
|
|
expectedUrls |
|
) |
| |
Value:{ \
std::transform(actualUrlsCopy.
begin(), actualUrlsCopy.
end(), std::back_insert_iterator(actualPaths), \
[](
const QUrl &
url) { return QFileInfo(url.toLocalFile()).absoluteFilePath(); }); \
std::transform(expectedUrlsCopy.
begin(), expectedUrlsCopy.
end(), std::back_insert_iterator(expectedPaths), \
[](
const QUrl &
url) { return QFileInfo(url.toLocalFile()).absoluteFilePath(); }); \
QCOMPARE(actualPaths, expectedPaths); \
}
QUrl url("example.com")
[constructor-url-reference]
Definition at line 31 of file dialogstestutils_p.h.
◆ OPEN_QUICK_DIALOG
#define OPEN_QUICK_DIALOG |
( |
| ) |
|
Value:QVERIFY2(dialogHelper.isWindowInitialized(), dialogHelper.failureMessage()); \
QVERIFY(dialogHelper.waitForWindowActive()); \
QVERIFY(dialogHelper.openDialog()); \
QTRY_VERIFY(dialogHelper.isQuickDialogOpen());
#define QVERIFY2(statement, description)
Definition at line 44 of file dialogstestutils_p.h.