aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktestutils
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'v6.2.10-lts' into tqtc/lts-6.2-opensourcev6.2.10-lts-lgplTarja Sundqvist2024-10-042-0/+98
|\ | | | | | | | | | | | | | | | | Qt 6.2.10-lts release Conflicts solved: dependencies.yaml Change-Id: Ibdf006fa08cddc80ad30fb9ce1089305729d4ece
| * Add QQuickTest::pointerPress/Move/Release convenience functionsShawn Rutledge2023-09-122-0/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | More autotests should test mouse, especially touch and maybe tablet events, with similar expectations, instead of testing mainly mouse and mostly neglecting the other device types. This makes it easier to work with data-driven tests that take specific QPointingDevice instances as test data. Started using them in tst_TapHandler::gesturePolicyDragWithinBounds() which was already data-driven by device type. Clearly, this code is now easier to read and less repetitious. In tst_qquickwindow::subclassWithPointerEventVirtualOverrides() the improvement is somewhat smaller, but this test validates that tablet events are working. Change-Id: I74d0fcc2f082af3737a0754c58205fa2b18c1a2d Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> (cherry picked from commit 59d967a8fb60bb764654a857cac20196358865eb) Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | Merge remote-tracking branch 'origin/tqtc/lts-6.2.7' into ↵Tarja Sundqvist2023-10-031-0/+1
|\| | | | | | | | | | | tqtc/lts-6.2-opensource Change-Id: Ib72ded968b7ac6b75b499392162e3cf3b761ec48
| * QuickTestUtils: Explicitly depend on NetworkFabian Kosmale2022-11-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The test utils require Qt's Network module, which they normally get transitively from the Qml target. However, that's not the case if QML is build with its network feature turned off. To prevent the build from failing, explicitily depend on Network. Original-patch-by: Julien Schueller Fixes: QTBUG-107472 Change-Id: If9b8ce2a2544b080264a31ed0596d1c6d9ca6825 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 1803d9c0bd3aa730e14d1573a763bb8ac29fc45e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* | Revert "Update commercial license headers"Tarja Sundqvist2022-11-2414-172/+172
|/ | | | | | | | | | | This reverts commit 74089697cf2a4961fb697100555b17ae2342d734. Revert of commercial license headers is required for the Qt 6.2.x opensource releases, Qt 6.2.5 onwards. Task-number: QTBUG-107760 Change-Id: Id49069cb5e5f261da185fd082dfb71deb259d387 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* findItem: don't return items with invalid QQmlContextsMitch Curtis2022-06-171-1/+4
| | | | | | | | | This can cause flakiness in tests. Fixes: QTBUG-75109 Change-Id: I07c2a4d86076fe8b07df9425660542babbda2c1a Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit 6638f9af0f9f26168302bef49aa87d2640b5ae1b)
* QQuickApplicationHelper: move initialProperties before qmlImportPathsMitch Curtis2022-06-152-3/+4
| | | | | | | | | | | | It's far more common to want to initialize certain properties in the QML file, so this should come before qmlImportPaths so that users of the (private) API do not need to pass an empty QStringList (for qmlImportPaths) each time they want to provide initial properties. Change-Id: I91ee4f1c1d69c83de3800af2f704c4c8a19d812d Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit f0d465b5a49b19638fe0170d82e6bb0b617e4dcd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* quicktestutils: remove duplicated function declarationMitch Curtis2022-06-131-2/+0
| | | | | | | Change-Id: If3fc379cbc9517470ce0726671e2451c38204da9 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 38f969ae76c5a18f50a8ee2e1698aae081f5459d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* quick/controlstestutils: add [[nodiscard]] to functions returning stuffMitch Curtis2022-06-132-6/+8
| | | | | | | | | This way we'll get warned when the return value is not used. Change-Id: If93abf2760b2ae3165720512c7d7f8dfa2600cf4 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit a7dab29f53768e84963453b3762a219d4c78790f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QuickTestUtilsPrivate: includemocsMarc Mutz2022-06-065-0/+10
| | | | | | | | | | | | | Including moc files directly into their classes' TU tends to improve codegen and enables extended compiler warnings, e.g. about unused private functions or fields. Task-number: QTBUG-102948 Change-Id: I3c9d74e94b0fbbf1e5e9d59522f400485c959cb5 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit 3c51c8bbeb1c819f856b4abebb50877ed284b802) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QQmlDataTest: fix dataDirectoryUrl generation for paths in qrcIvan Solovev2022-06-041-1/+1
| | | | | | | | | | | | | | | | When the data directory is located in qrc (like on Android), the data directory url was generated incorrectly, missing the last '/'. As a result QQmlDataTest::dataDirectoryUrl().resolved("something") call was providing incorrect results. This patch fixes it, which allows to unblacklist tst_qqmlqt::resolvedUrl() for Android. Task-number: QTBUG-100014 Change-Id: Id336a698b493edaa6e2ab7d36efbbef1f5acd1d6 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit 0f9abd63b9093f7f9878be697dbda7813201ffcc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update commercial license headersTarja Sundqvist2022-06-0414-172/+172
| | | | | | | | | | | | | | | Updated header.COMM to the files in tqtc-qtdeclarative. Examples, tests, or documentation files are not updated. The commercial license header may contain some additional lines so that its line count equals with the earlier license header. Reason for this is that some autotests use hard coded line numbers and a change in the line count causes failures in tests. Task-number: QTQAINFRA-4941 Change-Id: I32f554b0a8cb527f74d46f3c02b0e745d9fc5ddf Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* qqmlxmlhttprequest: Fix h2c fallout and ignore in futureMårten Nordheim2021-12-031-0/+11
| | | | | | | | | | | | | The headers were hardcoded but seeing as they are ultimately ignored on the server-side (which is following the spec) we can also ignore them if they come back in some form in the future. Fixes: QTBUG-98811 Change-Id: Ida490cbd8193eb3e3bf8d56fd387af93c408d921 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit 06e68e0cc06e5c53654bf1d9fa17376317640bc8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Use internal API to extend QuickTestUtilsPrivateAlexey Edelev2021-10-141-1/+6
| | | | | | | | | | | | Use qt_internal_extend_target to expose dependencies of the QuickTestUtilsPrivate module. Fixes: QTBUG-97467 Change-Id: I781cafee1f240548e24ac0047575335698f2d6c4 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 177e6b4d9ea01f9629a4235ee3785ad28f01649c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Consolidate test helpers into private librariesMitch Curtis2021-09-1415-0/+3911
Previously each test would include and build sources from the shared folder. Now we make those sources a library, build it once, then have each test link to it instead. We also take the opportunity to move some helpers that qtquickcontrols2 had added into the quicktestutils library where it makes sense, and for the helpers that don't make sense to be there, move them into quickcontrolstestutils. We add the libraries to src/ so that they are internal modules built as part of Qt, rather than tests. That way we can use them in a standalone test outside of qtdeclarative. Task-number: QTBUG-95621 Change-Id: I0a2ab3976fdbff2e4414df7bdc0808f16453b80a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit e310dadef779b28845b41fb091634cd001cda9de)