From 156865804faade23a0b9c275e6b1ee77c9eb698a Mon Sep 17 00:00:00 2001 From: David Rosca Date: Wed, 7 Feb 2018 11:20:48 +0100 Subject: [PATCH] Try removing qWaits from autotests --- autotests/tabmodeltest.cpp | 6 ------ autotests/webtabtest.cpp | 4 ---- autotests/webviewtest.cpp | 2 -- 3 files changed, 12 deletions(-) diff --git a/autotests/tabmodeltest.cpp b/autotests/tabmodeltest.cpp index c29ee733d..57f4627e2 100644 --- a/autotests/tabmodeltest.cpp +++ b/autotests/tabmodeltest.cpp @@ -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(), tab1); QCOMPARE(model.data(model.index(1, 0), TabModel::WebTabRole).value(), tab0); - QTest::qWait(10); delete w; } @@ -240,7 +237,6 @@ void TabModelTest::treeModelTest() QCOMPARE(model.index(2, 0).data(TabModel::WebTabRole).value(), tab5); QCOMPARE(model.index(3, 0).data(TabModel::WebTabRole).value(), 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(), tab1); QCOMPARE(model.index(5, 0).data(TabModel::WebTabRole).value(), tab3); - QTest::qWait(10); delete w; } diff --git a/autotests/webtabtest.cpp b/autotests/webtabtest.cpp index 64c143922..3ef5cb0c3 100644 --- a/autotests/webtabtest.cpp +++ b/autotests/webtabtest.cpp @@ -80,8 +80,6 @@ void WebTabTest::parentChildTabsTest() tab3.addChildTab(&tab2); QCOMPARE(tab3.childTabs(), (QVector{&tab4, &tab2})); QCOMPARE(tab1.childTabs(), (QVector{&tab3, &tab5, &tab6})); - - QTest::qWait(10); } void WebTabTest::prependChildTabsTest() @@ -134,8 +132,6 @@ void WebTabTest::prependChildTabsTest() tab3.addChildTab(&tab2); QCOMPARE(tab3.childTabs(), (QVector{&tab2, &tab4})); QCOMPARE(tab1.childTabs(), (QVector{&tab3, &tab6, &tab5})); - - QTest::qWait(10); } FALKONTEST_MAIN(WebTabTest) diff --git a/autotests/webviewtest.cpp b/autotests/webviewtest.cpp index 18ee3d0f8..1e9380def 100644 --- a/autotests/webviewtest.cpp +++ b/autotests/webviewtest.cpp @@ -101,8 +101,6 @@ void WebViewTest::loadSignalsChangePageTest() QTRY_COMPARE(loadStartedSpy.count(), 1); QCOMPARE(loadFinishedSpy.count(), 0); - - QTest::qWait(10); } FALKONTEST_MAIN(WebViewTest)