diff options
author | Balazs Egedi <egedib@inf.u-szeged.hu> | 2021-05-06 16:19:59 +0200 |
---|---|---|
committer | Balazs Egedi <egedib@inf.u-szeged.hu> | 2021-06-04 01:54:46 +0200 |
commit | 4d67b9f639114ddec0521980495ba27921800e39 (patch) | |
tree | 6f2917d370b96e5b8f4450657fafdca26380e3ab /tests/auto/quick/qmltests/tst_qmltests.cpp | |
parent | 74de8c765b3205a02cc9e2228f9d8a98bb0bbdaf (diff) |
Add mock UIDelegates for Quick Controls 2
{Alert, Confirm, Prompt}Dialogs are added to Controls2Delegates.
javaScriptDialogs auto test now works with Quick Controls 2.
Task-number: QTBUG-93666
Change-Id: I193b6ec3617db8b44a9dfc5534d99bdf8b20a78e
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/auto/quick/qmltests/tst_qmltests.cpp')
-rw-r--r-- | tests/auto/quick/qmltests/tst_qmltests.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/quick/qmltests/tst_qmltests.cpp b/tests/auto/quick/qmltests/tst_qmltests.cpp index 9bb45cdd7..d9be0a773 100644 --- a/tests/auto/quick/qmltests/tst_qmltests.cpp +++ b/tests/auto/quick/qmltests/tst_qmltests.cpp @@ -128,6 +128,9 @@ int main(int argc, char **argv) sigaction(SIGSEGV, &sigAction, 0); #endif + qputenv("QML2_IMPORT_PATH", QString(QDir(QT_TESTCASE_SOURCEDIR).canonicalPath() + "/mock-delegates").toUtf8()); + // TODO: temporary solution. Remove when Quick Controls 1 is removed. + qputenv("QTWEBENGINE_DIALOG_SET", QByteArray("QtQuickControls2")); QScopedPointer<Application> app; // Force to use English language for testing due to error message checks |