Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2073)

Unified Diff: content/browser/site_per_process_browsertest.cc

Issue 2785533003: Animated scroll shouldn't consume unhandled scrolls for OOPIFs. (Closed)
Patch Set: Disable scroll bubbling test on Android. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/site_per_process_browsertest.cc
diff --git a/content/browser/site_per_process_browsertest.cc b/content/browser/site_per_process_browsertest.cc
index cb7a479d278c1781ffa6b7d373b786eb0e27a4cf..13533cabdfa12391d9dbf65438a69a5821b36dfc 100644
--- a/content/browser/site_per_process_browsertest.cc
+++ b/content/browser/site_per_process_browsertest.cc
@@ -1091,8 +1091,15 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest,
// Test that scrolling a nested out-of-process iframe bubbles unused scroll
// delta to a parent frame.
// Flaky: https://crbug.com/627238
bokan 2017/04/11 22:18:29 If this used to be flaky, it means the functionali
wjmaclean 2017/04/12 15:54:47 Yes and no. :-)
+#if defined(OS_ANDROID)
+// Test failing on some Android builders, due to inaccurate coordinates on
+// some devices. See: https://crbug.com/700007.
+#define MAYBE_ScrollBubblingFromOOPIFTest DISABLED_ScrollBubblingFromOOPIFTest
+#else
+#define MAYBE_ScrollBubblingFromOOPIFTest ScrollBubblingFromOOPIFTest
+#endif
IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest,
- DISABLED_ScrollBubblingFromOOPIFTest) {
+ MAYBE_ScrollBubblingFromOOPIFTest) {
GURL main_url(embedded_test_server()->GetURL(
"a.com", "/cross_site_iframe_factory.html?a(b)"));
EXPECT_TRUE(NavigateToURL(shell(), main_url));
@@ -1192,6 +1199,17 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest,
filter->Reset();
+ // TODO(wjmaclean): This is ugly, but it seems that it stops the scroll
+ // we're about to send from occassionally colliding with the previous
+ // scroll animation.
+ {
+ base::RunLoop run_loop;
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
+ FROM_HERE, run_loop.QuitClosure(), TestTimeouts::action_max_timeout());
+ run_loop.Run();
+ update_rect = filter->last_rect();
+ }
+
// Scroll the parent down again in order to test scroll bubbling from
// gestures.
scroll_event.delta_y = -5.0f;

Powered by Google App Engine
This is Rietveld 408576698