-
robert@webkit.org authored
Reviewed by Benjamin Poulain. [Qt] fix http/tests/plugins/plugin-document-has-focus.html For some reason the platform-independent expected result has no newline at the end of the file. The unix test plugin also reports the event from a different line. These are harmless differences, so create platform-specific result. Note that nearly every platform skips this test at the moment. https://bugs.webkit.org/show_bug.cgi?id=60722 * platform/qt/Skipped: * platform/qt/http/tests/plugins/plugin-document-has-focus-expected.txt: Added. 2011-05-13 Robert Hogan <robert@webkit.org> Reviewed by Benjamin Poulain. [Qt] fix http/tests/plugins/plugin-document-has-focus.html https://bugs.webkit.org/show_bug.cgi?id=60722 QWebPage::setView() will display the browser window, so implement a private version that does just enough to satisfy EventSender's requirement to install an event filter on a page's web view. * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::setView): * WebCoreSupport/DumpRenderTreeSupportQt.h: 2011-05-13 Robert Hogan <robert@webkit.org> Reviewed by Benjamin Poulain. [Qt] fix http/tests/plugins/plugin-document-has-focus.html The support for this test added to the unix test plugin here may allow other platforms to pass it (nearly everyone skips it). On Qt it required a bit of trickiness with the page's EventSender object to get it working fully though, so only unskipping Qt here. https://bugs.webkit.org/show_bug.cgi?id=60722 * DumpRenderTree/qt/DumpRenderTreeQt.cpp: (WebCore::WebPage::WebPage): (WebCore::WebPage::eventSender): (WebCore::DumpRenderTree::DumpRenderTree): (WebCore::DumpRenderTree::initJSObjects): (WebCore::DumpRenderTree::createWindow): * DumpRenderTree/qt/DumpRenderTreeQt.h: * DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp: (webkit_test_plugin_new_instance): (webkit_test_plugin_set_window): (webkit_test_plugin_handle_event): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86447 268f45cc-cd09-0410-ab3c-d52691b4dbfc
cb31a816