From e7a873cb5b6a1e00c037bb7e3dd9885558cadf73 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sat, 20 Apr 2019 13:02:47 +0200 Subject: [PATCH] QmlTabsApiTest: Try to fix failure on FreeBSD CI --- autotests/qml/qmltabsapitest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autotests/qml/qmltabsapitest.cpp b/autotests/qml/qmltabsapitest.cpp index 486c6b1b8..0b6657cd7 100644 --- a/autotests/qml/qmltabsapitest.cpp +++ b/autotests/qml/qmltabsapitest.cpp @@ -53,9 +53,9 @@ void QmlTabsApiTest::testTabsAPI() QObject *qmlTabObject1 = m_testHelper.evaluateQObject("Falkon.Tabs.get({index: 0})"); QVERIFY(qmlTabObject1); - QCOMPARE(qmlTabObject1->property("url").toString(), "https://example.com/"); QCOMPARE(qmlTabObject1->property("index").toInt(), 0); QCOMPARE(qmlTabObject1->property("pinned").toBool(), false); + QTRY_COMPARE(qmlTabObject1->property("url").toString(), "https://example.com/"); m_testHelper.evaluate("Falkon.Tabs.addTab({" " url: 'https://another-example.com/'," @@ -71,9 +71,9 @@ void QmlTabsApiTest::testTabsAPI() QVERIFY(pinnedTab); QObject *qmlTabObject2 = m_testHelper.evaluateQObject("Falkon.Tabs.get({index: 0})"); QVERIFY(qmlTabObject2); - QCOMPARE(qmlTabObject2->property("url").toString(), "https://another-example.com/"); QCOMPARE(qmlTabObject2->property("index").toInt(), 0); QCOMPARE(qmlTabObject2->property("pinned").toBool(), true); + QTRY_COMPARE(qmlTabObject2->property("url").toString(), "https://another-example.com/"); bool unpinnedTab = m_testHelper.evaluate("Falkon.Tabs.unpinTab({index: 0})").toBool(); QVERIFY(unpinnedTab);