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

Side by Side Diff: chrome/browser/site_per_process_interactive_browsertest.cc

Issue 2828283004: Disable OOPIF test TabAndMouseFocusNavigation on windows. (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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/strings/string_number_conversions.h" 6 #include "base/strings/string_number_conversions.h"
7 #include "base/test/scoped_feature_list.h" 7 #include "base/test/scoped_feature_list.h"
8 #include "base/test/test_timeouts.h" 8 #include "base/test/test_timeouts.h"
9 #include "chrome/browser/password_manager/chrome_password_manager_client.h" 9 #include "chrome/browser/password_manager/chrome_password_manager_client.h"
10 #include "chrome/browser/renderer_context_menu/render_view_context_menu_browsert est_util.h" 10 #include "chrome/browser/renderer_context_menu/render_view_context_menu_browsert est_util.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 EXPECT_EQ("\"child2-focused-input2\"", press_tab_and_wait_for_message(true)); 320 EXPECT_EQ("\"child2-focused-input2\"", press_tab_and_wait_for_message(true));
321 EXPECT_EQ(child2, web_contents->GetFocusedFrame()); 321 EXPECT_EQ(child2, web_contents->GetFocusedFrame());
322 EXPECT_EQ("\"child2-focused-input1\"", press_tab_and_wait_for_message(true)); 322 EXPECT_EQ("\"child2-focused-input1\"", press_tab_and_wait_for_message(true));
323 EXPECT_EQ("\"child1-focused-input2\"", press_tab_and_wait_for_message(true)); 323 EXPECT_EQ("\"child1-focused-input2\"", press_tab_and_wait_for_message(true));
324 EXPECT_EQ(child1, web_contents->GetFocusedFrame()); 324 EXPECT_EQ(child1, web_contents->GetFocusedFrame());
325 EXPECT_EQ("\"child1-focused-input1\"", press_tab_and_wait_for_message(true)); 325 EXPECT_EQ("\"child1-focused-input1\"", press_tab_and_wait_for_message(true));
326 EXPECT_EQ("\"root-focused-input1\"", press_tab_and_wait_for_message(true)); 326 EXPECT_EQ("\"root-focused-input1\"", press_tab_and_wait_for_message(true));
327 EXPECT_EQ(main_frame, web_contents->GetFocusedFrame()); 327 EXPECT_EQ(main_frame, web_contents->GetFocusedFrame());
328 } 328 }
329 329
330 #if (defined(OS_LINUX) && !defined(USE_OZONE)) || defined(OS_WIN) 330 #if (defined(OS_LINUX) && !defined(USE_OZONE))
331 // Ensures that renderers know to advance focus to sibling frames and parent 331 // Ensures that renderers know to advance focus to sibling frames and parent
332 // frames in the presence of mouse click initiated focus changes. 332 // frames in the presence of mouse click initiated focus changes.
333 // Verifies against regression of https://crbug.com/702330 333 // Verifies against regression of https://crbug.com/702330
334 IN_PROC_BROWSER_TEST_F(SitePerProcessInteractiveBrowserTest, 334 IN_PROC_BROWSER_TEST_F(SitePerProcessInteractiveBrowserTest,
335 TabAndMouseFocusNavigation) { 335 TabAndMouseFocusNavigation) {
336 GURL main_url(embedded_test_server()->GetURL( 336 GURL main_url(embedded_test_server()->GetURL(
337 "a.com", "/cross_site_iframe_factory.html?a(b,c)")); 337 "a.com", "/cross_site_iframe_factory.html?a(b,c)"));
338 ui_test_utils::NavigateToURL(browser(), main_url); 338 ui_test_utils::NavigateToURL(browser(), main_url);
339 339
340 content::WebContents* web_contents = 340 content::WebContents* web_contents =
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1458 } 1458 }
1459 1459
1460 // To make sure we never clicked into the date picker, get current date value 1460 // To make sure we never clicked into the date picker, get current date value
1461 // and make sure it matches the cached value. 1461 // and make sure it matches the cached value.
1462 std::string date; 1462 std::string date;
1463 ASSERT_TRUE(ExecuteScriptAndExtractString( 1463 ASSERT_TRUE(ExecuteScriptAndExtractString(
1464 child_frame, "window.domAutomationController.send(input.value);", &date)); 1464 child_frame, "window.domAutomationController.send(input.value);", &date));
1465 EXPECT_EQ(cached_date, date) << "Cached date was '" << cached_date 1465 EXPECT_EQ(cached_date, date) << "Cached date was '" << cached_date
1466 << "' but current date is '" << date << "'."; 1466 << "' but current date is '" << date << "'.";
1467 } 1467 }
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