diff options
Diffstat (limited to 'tests/auto/render/qscene2d/tst_qscene2d.cpp')
-rw-r--r-- | tests/auto/render/qscene2d/tst_qscene2d.cpp | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/tests/auto/render/qscene2d/tst_qscene2d.cpp b/tests/auto/render/qscene2d/tst_qscene2d.cpp index f0ff2db1e..61ac893e4 100644 --- a/tests/auto/render/qscene2d/tst_qscene2d.cpp +++ b/tests/auto/render/qscene2d/tst_qscene2d.cpp @@ -58,9 +58,7 @@ private Q_SLOTS: // THEN QCOMPARE(scene2d.output(), nullptr); - QCOMPARE(scene2d.source(), QUrl(QStringLiteral(""))); QCOMPARE(scene2d.renderPolicy(), QScene2D::Continuous); - QCOMPARE(scene2d.loaded(), false); QCOMPARE(scene2d.item(), nullptr); } @@ -92,25 +90,6 @@ private Q_SLOTS: } { // WHEN - QSignalSpy spy(&scene2d, SIGNAL(sourceChanged(QUrl))); - const QUrl newValue = QUrl(QStringLiteral("qrc://source.qml")); - scene2d.setSource(newValue); - - // THEN - QVERIFY(spy.isValid()); - QCOMPARE(scene2d.source(), newValue); - QCOMPARE(spy.count(), 1); - - // WHEN - spy.clear(); - scene2d.setSource(newValue); - - // THEN - QCOMPARE(scene2d.source(), newValue); - QCOMPARE(spy.count(), 0); - } - { - // WHEN QSignalSpy spy(&scene2d, SIGNAL(renderPolicyChanged(QScene2D::RenderPolicy))); const QScene2D::RenderPolicy newValue = QScene2D::SingleShot; scene2d.setRenderPolicy(newValue); @@ -156,7 +135,6 @@ private Q_SLOTS: QScopedPointer<Qt3DRender::QRenderTargetOutput> output(new Qt3DRender::QRenderTargetOutput()); scene2d.setOutput(output.data()); - scene2d.setSource(QUrl(QStringLiteral("qrc://source.qml"))); scene2d.setRenderPolicy(QScene2D::SingleShot); // WHEN @@ -242,39 +220,6 @@ private Q_SLOTS: } - void checkSourceUpdate() - { - // GIVEN - TestArbiter arbiter; - Qt3DRender::Quick::QScene2D scene2d; - arbiter.setArbiterOnNode(&scene2d); - - { - // WHEN - scene2d.setSource(QUrl(QStringLiteral("qrc://source.qml"))); - QCoreApplication::processEvents(); - - // THEN - QCOMPARE(arbiter.events.size(), 1); - auto change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>(); - QCOMPARE(change->propertyName(), "source"); - QCOMPARE(change->value().value<QUrl>(), scene2d.source()); - QCOMPARE(change->type(), Qt3DCore::PropertyUpdated); - - arbiter.events.clear(); - } - - { - // WHEN - scene2d.setSource(QUrl(QStringLiteral("qrc://source.qml"))); - QCoreApplication::processEvents(); - - // THEN - QCOMPARE(arbiter.events.size(), 0); - } - - } - void checkRenderPolicyUpdate() { // GIVEN |