tst_creation: Remove tst_creation::elements

There is no real sense in testing what boils down to operator new/delete plus a
little PLT overhead. For one thing, the allocator is too variant to test at such
a level. For another, it's not representative of any real-world scenario.

Change-Id: Ib455bb00839ff4e25099977059759a7b328db306
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Robin Burchell 2016-08-05 00:22:27 +02:00
parent 3631c77ff0
commit e0e591fb80
1 changed files with 0 additions and 25 deletions

View File

@ -64,9 +64,6 @@ private slots:
void itemtree_qml();
void itemtree_scene_cpp();
void elements_data();
void elements();
void itemtests_qml_data();
void itemtests_qml();
@ -299,28 +296,6 @@ void tst_creation::itemtree_scene_cpp()
delete root;
}
void tst_creation::elements_data()
{
QTest::addColumn<QString>("type");
QList<QString> types = QQmlMetaType::qmlTypeNames();
foreach (QString type, types)
QTest::newRow(type.toLatin1()) << type;
}
void tst_creation::elements()
{
QFETCH(QString, type);
QQmlType *t = QQmlMetaType::qmlType(type, 2, 0);
if (!t || !t->isCreatable())
QSKIP("Non-creatable type");
QBENCHMARK {
QObject *obj = t->create();
delete obj;
}
}
void tst_creation::itemtests_qml_data()
{
QTest::addColumn<QString>("filepath");