qt5base-lts/tests/auto/gui
Friedemann Kleint d25589e052 QTestlib: Enable comparing QList against initializer lists/arrays
It is unnecessary to create a QList container just for comparison.

Split out helpers for comparing sequence sizes and sequences from
qCompare(QList) and add a template for an array with a non-type template
parameter for the size.

One can then write something like:

const int expected[] = {10, 12,...};
QCOMPARE(QFontDatabase.pointSizes(...), expected)

Unfortunately, any commas in such an array will be misread by macro expansion
as macro argument separators, so any expected array with more than one entry
needs an extra macro expanding __VA_ARGS__.

Change-Id: Ie7c8dc20bf669bbb25f6d7f8562455f8d03968c8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2020-07-21 22:01:20 +02:00
..
image Fix buffer overflow 2020-07-10 22:55:28 +02:00
itemmodels Tests: Use QVERIFY instead of QCOMPARE for empty lists 2020-07-10 14:30:58 +02:00
kernel Cover more properties in the QAction test 2020-07-17 08:26:56 +02:00
math3d CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00
painting QtGui/Windows: Move the QRegion conversion functions into QtGui 2020-07-16 12:09:44 +02:00
qopengl CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qopenglconfig CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qvulkan CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
rhi rhi: Allow null resources in srb 2020-07-13 14:54:30 +02:00
text QTestlib: Enable comparing QList against initializer lists/arrays 2020-07-21 22:01:20 +02:00
util QTestlib: Enable comparing QList against initializer lists/arrays 2020-07-21 22:01:20 +02:00
.prev_CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
gui.pro Remove winrt 2020-06-06 20:25:49 +02:00