qt5base-lts/tests/auto/corelib
Sami Shalayel cec3b3b4f9 Remove assertion from ownMethodIndex that breaks tests
ownMethodIndex works for all kind of methods, also for constructors.
Therefore, remove the assertion there (that checks for non constructors)
and add a test in qtbase so it does not happen again.

The test broken by the assertion is in qtdeclarative:
tst_QJSEngine::newQMetaObject().

Also rename QMetaMethodPrivate::ownConstructorIndex() to
ownConstructorMethodIndex() as the previous naming implied that
ownMethodIndex() could not be used for constructors.

amends b73ab954df

Task-number: QTBUG-105360
Change-Id: I0244993ed79bee055645b5443f5d02e1c089a6c6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2022-08-10 00:48:31 +02:00
..
animation Add license headers to cmake files 2022-08-03 17:14:55 +02:00
global Tests: remove #define COMMA 2022-08-09 12:13:26 -07:00
io qputenv: port to QByteArrayView 2022-08-06 14:21:46 +00:00
itemmodels Add license headers to cmake files 2022-08-03 17:14:55 +02:00
kernel Remove assertion from ownMethodIndex that breaks tests 2022-08-10 00:48:31 +02:00
mimetypes Add license headers to cmake files 2022-08-03 17:14:55 +02:00
platform Add license headers to cmake files 2022-08-03 17:14:55 +02:00
plugin Add license headers to cmake files 2022-08-03 17:14:55 +02:00
serialization Add license headers to cmake files 2022-08-03 17:14:55 +02:00
text Add Latin 1 case-insensitive Boyer-Moore searcher 2022-08-04 23:12:39 +02:00
thread Remove blacklist of tryAcquireWithTimeout on Windows 2022-08-07 16:05:03 +02:00
time qputenv: port to QByteArrayView 2022-08-06 14:21:46 +00:00
tools Tests: remove #define COMMA 2022-08-09 12:13:26 -07:00
CMakeLists.txt Add license headers to cmake files 2022-08-03 17:14:55 +02:00