Commit 125e7954 authored by Lucas Furukawa Gadani's avatar Lucas Furukawa Gadani Committed by Commit Bot

Disable WebViewAPITest.AcceptTouchEvents when using OOPIF-based guests.

Change-Id: I7b5950fbeb943479cb73569f0265fa1d999e951c
Reviewed-on: https://chromium-review.googlesource.com/684556Reviewed-by: default avatarJames MacLean <wjmaclean@chromium.org>
Commit-Queue: Lucas Gadani <lfg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504355}
parent 15edc187
......@@ -18,6 +18,7 @@
#include "components/guest_view/browser/guest_view_manager_factory.h"
#include "components/guest_view/browser/test_guest_view_manager.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/test_renderer_host.h"
......@@ -293,6 +294,13 @@ content::WebContents* WebViewAPITest::GetGuestWebContents() {
#define MAYBE_AcceptTouchEvents AcceptTouchEvents
#endif
IN_PROC_BROWSER_TEST_F(WebViewAPITest, MAYBE_AcceptTouchEvents) {
// This test only makes sense for non-OOPIF WebView, since with
// GuestViewCrossProcessFrames events are routed directly to the
// guest, so the embedder does not need to know about the installation of
// touch handlers.
if (base::FeatureList::IsEnabled(::features::kGuestViewCrossProcessFrames))
return;
LaunchApp("web_view/accept_touch_events");
content::RenderViewHost* embedder_rvh =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment