From a706713900b488de8ba58c1e54b99e192a1e3cca Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 18 Jan 2022 16:26:59 +0100 Subject: [PATCH] autotests: be more chatty during test This particular test fails for me: I apparently have some qupzilla URLs on speed-dial that show up in the test, causing it to fail. --- autotests/qml/qmltopsitesapitest.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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);