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

Side by Side Diff: content/browser/site_per_process_browsertest.cc

Issue 2815383002: Revert of Re-enable OOPIF scroll bubbling test. (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/site_per_process_browsertest.h" 5 #include "content/browser/site_per_process_browsertest.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 1083
1084 // The precise amount of scroll for the first view position update is not 1084 // The precise amount of scroll for the first view position update is not
1085 // deterministic, so this simply verifies that the OOPIF moved from its 1085 // deterministic, so this simply verifies that the OOPIF moved from its
1086 // earlier position. 1086 // earlier position.
1087 gfx::Rect update_rect = filter->last_rect(); 1087 gfx::Rect update_rect = filter->last_rect();
1088 EXPECT_LT(update_rect.y(), bounds.y() - rwhv_root->GetViewBounds().y()); 1088 EXPECT_LT(update_rect.y(), bounds.y() - rwhv_root->GetViewBounds().y());
1089 } 1089 }
1090 1090
1091 // Test that scrolling a nested out-of-process iframe bubbles unused scroll 1091 // Test that scrolling a nested out-of-process iframe bubbles unused scroll
1092 // delta to a parent frame. 1092 // delta to a parent frame.
1093 #if defined(OS_ANDROID) 1093 // Flaky: https://crbug.com/627238
1094 #define MAYBE_ScrollBubblingFromOOPIFTest DISABLED_ScrollBubblingFromOOPIFTest
1095 #else
1096 #define MAYBE_ScrollBubblingFromOOPIFTest ScrollBubblingFromOOPIFTest
1097 #endif
1098 IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, 1094 IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest,
1099 MAYBE_ScrollBubblingFromOOPIFTest) { 1095 DISABLED_ScrollBubblingFromOOPIFTest) {
1100 GURL main_url(embedded_test_server()->GetURL( 1096 GURL main_url(embedded_test_server()->GetURL(
1101 "a.com", "/cross_site_iframe_factory.html?a(b)")); 1097 "a.com", "/cross_site_iframe_factory.html?a(b)"));
1102 EXPECT_TRUE(NavigateToURL(shell(), main_url)); 1098 EXPECT_TRUE(NavigateToURL(shell(), main_url));
1103 1099
1104 // It is safe to obtain the root frame tree node here, as it doesn't change. 1100 // It is safe to obtain the root frame tree node here, as it doesn't change.
1105 FrameTreeNode* root = static_cast<WebContentsImpl*>(shell()->web_contents()) 1101 FrameTreeNode* root = static_cast<WebContentsImpl*>(shell()->web_contents())
1106 ->GetFrameTree() 1102 ->GetFrameTree()
1107 ->root(); 1103 ->root();
1108 ASSERT_EQ(1U, root->child_count()); 1104 ASSERT_EQ(1U, root->child_count());
1109 1105
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 int initial_y = update_rect.y(); 1153 int initial_y = update_rect.y();
1158 filter->Reset(); 1154 filter->Reset();
1159 1155
1160 // Scroll the parent frame downward. 1156 // Scroll the parent frame downward.
1161 blink::WebMouseWheelEvent scroll_event( 1157 blink::WebMouseWheelEvent scroll_event(
1162 blink::WebInputEvent::kMouseWheel, blink::WebInputEvent::kNoModifiers, 1158 blink::WebInputEvent::kMouseWheel, blink::WebInputEvent::kNoModifiers,
1163 blink::WebInputEvent::kTimeStampForTesting); 1159 blink::WebInputEvent::kTimeStampForTesting);
1164 scroll_event.SetPositionInWidget(1, 1); 1160 scroll_event.SetPositionInWidget(1, 1);
1165 scroll_event.delta_x = 0.0f; 1161 scroll_event.delta_x = 0.0f;
1166 scroll_event.delta_y = -5.0f; 1162 scroll_event.delta_y = -5.0f;
1167 // Set has_precise_scroll_deltas to keep these events off the animated scroll
1168 // pathways, which currently break this test.
1169 // https://bugs.chromium.org/p/chromium/issues/detail?id=710513
1170 scroll_event.has_precise_scrolling_deltas = true;
1171 rwhv_parent->ProcessMouseWheelEvent(scroll_event, ui::LatencyInfo()); 1163 rwhv_parent->ProcessMouseWheelEvent(scroll_event, ui::LatencyInfo());
1172 1164
1173 // Ensure that the view position is propagated to the child properly. 1165 // Ensure that the view position is propagated to the child properly.
1174 filter->Wait(); 1166 filter->Wait();
1175 update_rect = filter->last_rect(); 1167 update_rect = filter->last_rect();
1176 EXPECT_LT(update_rect.y(), initial_y); 1168 EXPECT_LT(update_rect.y(), initial_y);
1177 filter->Reset(); 1169 filter->Reset();
1178 1170
1179 // Now scroll the nested frame upward, which should bubble to the parent. 1171 // Now scroll the nested frame upward, which should bubble to the parent.
1180 // The upscroll exceeds the amount that the frame was initially scrolled 1172 // The upscroll exceeds the amount that the frame was initially scrolled
(...skipping 8688 matching lines...) Expand 10 before | Expand all | Expand 10 after
9869 names.insert(root->children[0]->frame_entry->frame_unique_name()); 9861 names.insert(root->children[0]->frame_entry->frame_unique_name());
9870 } 9862 }
9871 9863
9872 // More than one entry in the set means that the subframe frame navigation 9864 // More than one entry in the set means that the subframe frame navigation
9873 // entries didn't have a consistent unique name. This will break history 9865 // entries didn't have a consistent unique name. This will break history
9874 // navigations =( 9866 // navigations =(
9875 EXPECT_THAT(names, SizeIs(1)) << "Mismatched names for subframe!"; 9867 EXPECT_THAT(names, SizeIs(1)) << "Mismatched names for subframe!";
9876 } 9868 }
9877 9869
9878 } // namespace content 9870 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698