summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@kdab.com>2015-12-01 12:43:33 +0100
committerKevin Ottens <kevin.ottens@kdab.com>2015-12-01 14:24:01 +0000
commitbb2e5c6ec62f9bc23cea2c67f129fe1f7873b1be (patch)
tree2f827357ab02aa898b5ab2c3ebfcc08b14d83cc7 /tests
parent0e2bb7e307d3f75b903998af1813a0f590e144bc (diff)
Remove unused code from QAspectFactory
Change-Id: I1639a3ee2e4aac177f1c7cf4252a1c65db7cf721 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/core/qaspectfactory/tst_qaspectfactory.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/auto/core/qaspectfactory/tst_qaspectfactory.cpp b/tests/auto/core/qaspectfactory/tst_qaspectfactory.cpp
index 371c54e41..11e5deaa0 100644
--- a/tests/auto/core/qaspectfactory/tst_qaspectfactory.cpp
+++ b/tests/auto/core/qaspectfactory/tst_qaspectfactory.cpp
@@ -89,27 +89,6 @@ private Q_SLOTS:
QVERIFY(aspect->parent() == Q_NULLPTR);
}
- void shouldRegisterFactories()
- {
- // GIVEN
- QAspectFactory factory;
-
- // WHEN
- factory.addFactory(QStringLiteral("another"),
- QAspectFactory::functionHelper<AnotherFakeAspect>);
-
- // THEN
- QCOMPARE(factory.availableFactories().size(), 2);
- QVERIFY(factory.availableFactories().contains(QStringLiteral("another")));
-
- // WHEN
- QAbstractAspect *aspect = factory.createAspect(QStringLiteral("another"), this);
-
- // THEN
- QVERIFY(qobject_cast<AnotherFakeAspect*>(aspect) != Q_NULLPTR);
- QCOMPARE(aspect->parent(), this);
- }
-
void shouldGracefulyHandleMissingFactories()
{
// GIVEN