mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Autotests: Add qWait(10) at the end of QtWebEngine tests
Otherwise it crashes on exit
This commit is contained in:
parent
fa19d97dc4
commit
4124c67c5f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -101,6 +101,8 @@ void WebViewTest::loadSignalsChangePageTest()
|
|||
|
||||
QTRY_COMPARE(loadStartedSpy.count(), 1);
|
||||
QCOMPARE(loadFinishedSpy.count(), 0);
|
||||
|
||||
QTest::qWait(10);
|
||||
}
|
||||
|
||||
FALKONTEST_MAIN(WebViewTest)
|
||||
|
|
Loading…
Reference in New Issue
Block a user