qt6-bb10/tests/auto/corelib/itemmodels
Edward Welbourne a2566e139f Extend QTest::failOnWarning() to a no-parameter fail-on-any-warning
Many users (albeit mostly in qtdeclarative) of failOnWarning() are
passing a catch-all regexp, which is only supported when regular
expression support is enabled. Make their lives easier and those
checks independent of the feature by adding a third overload, taking
no parameter, that fails on any (unanticipated) warning.

Implementation is trivial - just put a null QVariant in
failOnWarningList; it won't match either check on the entry that might
exempt a test from failing on a warning, so any warning at all will
trigger failure.

[ChangeLog][QtTest] QTest::failOnWarning() now has a no-parameter
overload to support the common case of fail-on-any-warning, without
needing to construct a match-everything regular expression.

Change-Id: Ic693f1c8619fd6e495543b85737d566134cf9d20
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2024-05-06 20:27:41 +02:00
..
qabstractitemmodel Fix test compilation issues with QtLite configuration 2024-05-06 14:29:02 +00:00
qabstractproxymodel Change license for tests files 2024-02-04 09:56:42 +01:00
qconcatenatetablesproxymodel Change license for tests files 2024-02-04 09:56:42 +01:00
qidentityproxymodel Change license for tests files 2024-02-04 09:56:42 +01:00
qitemmodel Change license for tests files 2024-02-04 09:56:42 +01:00
qitemselectionmodel Extend QTest::failOnWarning() to a no-parameter fail-on-any-warning 2024-05-06 20:27:41 +02:00
qsortfilterproxymodel Enable resetting a sort model by descending order 2024-04-29 22:20:25 +03:00
qsortfilterproxymodel_recursive Change license for tests files 2024-02-04 09:56:42 +01:00
qsortfilterproxymodel_regularexpression Change license for tests files 2024-02-04 09:56:42 +01:00
qstringlistmodel Change license for tests files 2024-02-04 09:56:42 +01:00
qtransposeproxymodel Change license for tests files 2024-02-04 09:56:42 +01:00
CMakeLists.txt Fix test compilation issues with QtLite configuration 2024-05-06 14:29:02 +00:00