qt5base-lts/tests/auto/widgets/graphicsview/qgraphicsscene
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
..
testData/render Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
.gitignore Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
Ash_European.jpg Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
BLACKLIST Update for failures only on dev branch. Use general platform names 2019-08-19 18:22:11 +02:00
CMakeLists.txt CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
graphicsScene_selection.data Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
images.qrc Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
qgraphicsscene.pro Remove winrt 2020-06-06 20:25:49 +02:00
testdata.qrc Android: Fix some QGraphicsScene tests 2016-01-20 07:48:34 +00:00
tst_qgraphicsscene.cpp QTestlib: Enable comparing QList against initializer lists/arrays 2020-07-21 22:01:20 +02:00