Packages everything needed to build the actual serialization into a helper function that's parametrized with a function_ref. Said helper provides the function_ref with a default-constructed QFormDataBuilder as an argument to the function, but since we're checking move semantics here, it also expects to receive, via the return type, the builder object to eventually use for building. This need not be the same as the one it originally supplied. If this looks a bit complicated, it's a necessary evil for conveniently rolling out this way of performing the test to the rest of the test functions, to eventually, finally get rid of using QDebug to introspect individual QHttpParts when, in reality, we're only interested in the QHttpMultiPart's wire serialization (iow: the observable behavior). Centralize the QSKIP in the helper function. This increases compile coverage of the rest of the code, but requires QTEST_THROW_ON_SKIP, so add a check for that alongside the QTEST_THROW_ON_FAIL one. Task-number: QTBUG-125985 Change-Id: Ib6217a02159c79f48f0036e90d7bbbf43e69d0ba Reviewed-by: Juha Vuolle <juha.vuolle@qt.io> (cherry picked from commit 9fcafa715ecb1c6e45fc51d599178bbde3cc1b12) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> |
||
|---|---|---|
| .. | ||
| auto | ||
| baseline | ||
| benchmarks | ||
| global | ||
| libfuzzer | ||
| manual | ||
| shared | ||
| testserver | ||
| CMakeLists.txt | ||
| README | ||
README
This directory contains autotests and benchmarks based on Qt Test. In order
to run the autotests reliably, you need to configure a desktop to match the
test environment that these tests are written for.
Linux X11:
* The user must be logged in to an active desktop; you can't run the
autotests without a valid DISPLAY that allows X11 connections.
* The tests are run against a KDE3 or KDE4 desktop.
* Window manager uses "click to focus", and not "focus follows mouse". Many
tests move the mouse cursor around and expect this to not affect focus
and activation.
* Disable "click to activate", i.e., when a window is opened, the window
manager should automatically activate it (give it input focus) and not
wait for the user to click the window.