summaryrefslogtreecommitdiff
path: root/Tools/WebKitTestRunner/InjectedBundle/qt/TestRunnerQt.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2012-11-07 11:22:47 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-11-07 11:22:47 +0100
commitcfd86b747d32ac22246a1aa908eaa720c63a88c1 (patch)
tree24d68c6f61c464ecba1e05670b80390ea3b0e50c /Tools/WebKitTestRunner/InjectedBundle/qt/TestRunnerQt.cpp
parent69d7c744c9de19d152dbe2d8e46eb7dfd4511d1a (diff)
downloadqtwebkit-cfd86b747d32ac22246a1aa908eaa720c63a88c1.tar.gz
Imported WebKit commit 20271caf2e2c016d5cef40184cddeefeac4f1876 (http://svn.webkit.org/repository/webkit/trunk@133733)
New snapshot that contains all previous fixes as well as build fix for latest QtMultimedia API changes.
Diffstat (limited to 'Tools/WebKitTestRunner/InjectedBundle/qt/TestRunnerQt.cpp')
-rw-r--r--Tools/WebKitTestRunner/InjectedBundle/qt/TestRunnerQt.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/Tools/WebKitTestRunner/InjectedBundle/qt/TestRunnerQt.cpp b/Tools/WebKitTestRunner/InjectedBundle/qt/TestRunnerQt.cpp
index f5d149b3d..1671ac73b 100644
--- a/Tools/WebKitTestRunner/InjectedBundle/qt/TestRunnerQt.cpp
+++ b/Tools/WebKitTestRunner/InjectedBundle/qt/TestRunnerQt.cpp
@@ -29,10 +29,12 @@
#include "ActivateFonts.h"
#include "InjectedBundle.h"
+#include "QtTestSupport.h"
#include <QCoreApplication>
#include <QDir>
#include <QFontDatabase>
#include <QObject>
+#include <QtCore/qglobal.h>
#include <qwebsettings.h>
namespace WTR {
@@ -59,13 +61,9 @@ private:
void TestRunner::platformInitialize()
{
- // Make WebKit2 mimic the behaviour of DumpRenderTree, which is incorrect,
- // but tests are successfully passed. On the long run, Qt will move to QRawFont,
- // which makes the use of QFontDatabase unnecessary.
- // See https://bugs.webkit.org/show_bug.cgi?id=53427
- QWebSettings::clearMemoryCaches();
- QFontDatabase::removeAllApplicationFonts();
+ WebKit::QtTestSupport::clearMemoryCaches();
activateFonts();
+
QObject::connect(&m_waitToDumpWatchdogTimer, SIGNAL(timeout()), WatchdogTimerHelper::instance(), SLOT(timerFired()));
}