make the man webpage believe it has focus, so the editing tests work correctly.
authorlars <lars@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2007 12:32:17 +0000 (12:32 +0000)
committerlars <lars@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2007 12:32:17 +0000 (12:32 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26965 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/qt/DumpRenderTree.cpp

index 20e674c086d93e6fbf76ddd04b98fa5f232a1de0..c7af9ae042867a36205698b573b17606b5c87c45 100644 (file)
@@ -1,3 +1,12 @@
+2007-10-24  Lars Knoll  <lars@trolltech.com>
+
+        Reviewed by Simon.
+
+        make the man webpage believe it has focus, so the editing tests work correctly.
+
+        * DumpRenderTree/qt/DumpRenderTree.cpp:
+        (WebCore::DumpRenderTree::DumpRenderTree):
+
 2007-10-24  Lars Knoll  <lars@trolltech.com>
 
         Reviewed by Simon.
index 6e06a6a2078258e246bba70fca01a1b446d39b4d..5074606b46701f82533b375447e061475c62764c 100644 (file)
@@ -37,6 +37,7 @@
 #include <QScrollArea>
 #include <QApplication>
 #include <QUrl>
+#include <QFocusEvent>
 
 #include <qwebpage.h>
 #include <qwebframe.h>
@@ -136,6 +137,8 @@ DumpRenderTree::DumpRenderTree()
     m_eventSender = new EventSender(m_page);
 
     QObject::connect(this, SIGNAL(quit()), qApp, SLOT(quit()), Qt::QueuedConnection);
+    QFocusEvent event(QEvent::FocusIn, Qt::ActiveWindowFocusReason);
+    QApplication::sendEvent(m_page, &event);
 }
 
 DumpRenderTree::~DumpRenderTree()