diff --git a/autotests/qml/qmltopsitesapitest.cpp b/autotests/qml/qmltopsitesapitest.cpp index 79d2dcc76..6fbcfb54b 100644 --- a/autotests/qml/qmltopsitesapitest.cpp +++ b/autotests/qml/qmltopsitesapitest.cpp @@ -34,6 +34,19 @@ void QmlTopSitesApiTest::testTopSites() { mApp->plugins()->speedDial()->addPage(QUrl("https://example.com"), "Example Domain"); auto list = m_testHelper.evaluate("Falkon.TopSites.get()").toVariant().toList(); + qDebug() << "Top sites list size=" << list.length(); + for( const auto& site : list ) + { + QObject* object = qvariant_cast(site); + if (object) + { + qDebug() << ".." << object->property("title") << object->property("url"); + } + else + { + qDebug() << ".." << site; + } + } QCOMPARE(list.length(), 1); QObject* object = qvariant_cast(list.at(0)); QVERIFY(object);