1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02:00

Autotests: Add qWait(10) at the end of QtWebEngine tests

Otherwise it crashes on exit
This commit is contained in:
David Rosca 2018-01-31 19:10:59 +01:00
parent fa19d97dc4
commit 4124c67c5f
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
3 changed files with 7 additions and 1 deletions

View File

@ -94,6 +94,7 @@ void TabModelTest::basicTest()
ModelTest modelTest2(&model2);
QCOMPARE(model2.rowCount(), 1);
QTest::qWait(10);
delete w;
}
@ -117,6 +118,7 @@ void TabModelTest::dataTest()
WebTab *tab1 = w->weView(1)->webTab();
QTest::qWait(10);
delete w;
}
void TabModelTest::treeModelTest()
@ -213,7 +215,7 @@ void TabModelTest::treeModelTest()
QCOMPARE(model.index(2, 0).data(TabModel::WebTabRole).value<WebTab*>(), tab5);
QCOMPARE(model.index(3, 0).data(TabModel::WebTabRole).value<WebTab*>(), tab6);
QTest::qWait(1);
QTest::qWait(10);
delete w;
}

View File

@ -70,6 +70,8 @@ void WebTabTest::parentChildTabsTest()
QCOMPARE(tab3.parentTab(), &tab1);
QCOMPARE(tab3.childTabs(), QVector<WebTab*>{&tab4});
QCOMPARE(tab4.parentTab(), &tab3);
QTest::qWait(10);
}
FALKONTEST_MAIN(WebTabTest)

View File

@ -101,6 +101,8 @@ void WebViewTest::loadSignalsChangePageTest()
QTRY_COMPARE(loadStartedSpy.count(), 1);
QCOMPARE(loadFinishedSpy.count(), 0);
QTest::qWait(10);
}
FALKONTEST_MAIN(WebViewTest)