mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Try removing qWaits from autotests
This commit is contained in:
parent
fd759ded62
commit
156865804f
|
@ -94,7 +94,6 @@ void TabModelTest::basicTest()
|
|||
ModelTest modelTest2(&model2);
|
||||
QCOMPARE(model2.rowCount(), 1);
|
||||
|
||||
QTest::qWait(10);
|
||||
delete w;
|
||||
}
|
||||
|
||||
|
@ -117,7 +116,6 @@ void TabModelTest::dataTest()
|
|||
|
||||
w->tabWidget()->addView(QUrl("http://test.com"));
|
||||
|
||||
QTest::qWait(10);
|
||||
delete w;
|
||||
}
|
||||
void TabModelTest::pinTabTest()
|
||||
|
@ -142,7 +140,6 @@ void TabModelTest::pinTabTest()
|
|||
QCOMPARE(model.data(model.index(0, 0), TabModel::WebTabRole).value<WebTab*>(), tab1);
|
||||
QCOMPARE(model.data(model.index(1, 0), TabModel::WebTabRole).value<WebTab*>(), tab0);
|
||||
|
||||
QTest::qWait(10);
|
||||
delete w;
|
||||
}
|
||||
|
||||
|
@ -240,7 +237,6 @@ 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(10);
|
||||
delete w;
|
||||
}
|
||||
|
||||
|
@ -255,7 +251,6 @@ void TabModelTest::resetTreeModelTest()
|
|||
|
||||
QTRY_COMPARE(model.rowCount(QModelIndex()), 1);
|
||||
|
||||
QTest::qWait(1);
|
||||
delete w;
|
||||
|
||||
QCOMPARE(model.rowCount(QModelIndex()), 0);
|
||||
|
@ -316,7 +311,6 @@ void TabModelTest::mruModelTest()
|
|||
QCOMPARE(model.index(4, 0).data(TabModel::WebTabRole).value<WebTab*>(), tab1);
|
||||
QCOMPARE(model.index(5, 0).data(TabModel::WebTabRole).value<WebTab*>(), tab3);
|
||||
|
||||
QTest::qWait(10);
|
||||
delete w;
|
||||
}
|
||||
|
||||
|
|
|
@ -80,8 +80,6 @@ void WebTabTest::parentChildTabsTest()
|
|||
tab3.addChildTab(&tab2);
|
||||
QCOMPARE(tab3.childTabs(), (QVector<WebTab*>{&tab4, &tab2}));
|
||||
QCOMPARE(tab1.childTabs(), (QVector<WebTab*>{&tab3, &tab5, &tab6}));
|
||||
|
||||
QTest::qWait(10);
|
||||
}
|
||||
|
||||
void WebTabTest::prependChildTabsTest()
|
||||
|
@ -134,8 +132,6 @@ void WebTabTest::prependChildTabsTest()
|
|||
tab3.addChildTab(&tab2);
|
||||
QCOMPARE(tab3.childTabs(), (QVector<WebTab*>{&tab2, &tab4}));
|
||||
QCOMPARE(tab1.childTabs(), (QVector<WebTab*>{&tab3, &tab6, &tab5}));
|
||||
|
||||
QTest::qWait(10);
|
||||
}
|
||||
|
||||
FALKONTEST_MAIN(WebTabTest)
|
||||
|
|
|
@ -101,8 +101,6 @@ 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