From 639390ec5e5d5189ac10c0b33ab941ec090592de Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 12 Nov 2009 04:33:17 +0100 Subject: [PATCH] Disable the pagecache/cache to get more stable loading results To generate a stable result on the cycler and loading test disabling the cache is necessary. Together with the -media 5 option of the test case the result is quite stable. --- tests/cycler/tst_cycler.cpp | 3 +++ tests/launcher/main.cpp | 2 ++ tests/loading/tst_loading.cpp | 2 ++ 3 files changed, 7 insertions(+) diff --git a/tests/cycler/tst_cycler.cpp b/tests/cycler/tst_cycler.cpp index 69c5b21..0fa12d2 100644 --- a/tests/cycler/tst_cycler.cpp +++ b/tests/cycler/tst_cycler.cpp @@ -68,6 +68,9 @@ private: void tst_Loading::init() { + QWebSettings::globalSettings()->setMaximumPagesInCache(0); + QWebSettings::globalSettings()->setObjectCacheCapacities(0, 0, 0); + m_view = new QWebView; m_page = m_view->page(); diff --git a/tests/launcher/main.cpp b/tests/launcher/main.cpp index 8eca8dc..f5f5585 100644 --- a/tests/launcher/main.cpp +++ b/tests/launcher/main.cpp @@ -27,6 +27,8 @@ int main(int argc, char** argv) { QApplication app(argc, argv); + QWebSettings::globalSettings()->setMaximumPagesInCache(0); + QWebSettings::globalSettings()->setObjectCacheCapacities(0, 0, 0); QWebView* view = new QWebView; Monitor mon(view); diff --git a/tests/loading/tst_loading.cpp b/tests/loading/tst_loading.cpp index 4c5b1ef..f491648 100644 --- a/tests/loading/tst_loading.cpp +++ b/tests/loading/tst_loading.cpp @@ -68,6 +68,8 @@ private: void tst_Loading::init() { + QWebSettings::globalSettings()->setMaximumPagesInCache(0); + QWebSettings::globalSettings()->setObjectCacheCapacities(0, 0, 0); m_view = new QWebView; m_page = m_view->page(); -- 2.1.4