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

Side by Side Diff: chrome/browser/ui/find_bar/find_bar_host_browsertest.cc

Issue 2463823005: Disable FindInPageControllerTest.LargePage on Win (Closed)
Patch Set: Created 4 years, 1 month 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 EXPECT_EQ(1, 399 EXPECT_EQ(1,
400 ui_test_utils::FindInPage(web_contents, ASCIIToUTF16(search_string), 400 ui_test_utils::FindInPage(web_contents, ASCIIToUTF16(search_string),
401 kFwd, kIgnoreCase, NULL, NULL)); 401 kFwd, kIgnoreCase, NULL, NULL));
402 402
403 search_string = "Google\nApple\nandroid"; 403 search_string = "Google\nApple\nandroid";
404 EXPECT_EQ(1, 404 EXPECT_EQ(1,
405 ui_test_utils::FindInPage(web_contents, ASCIIToUTF16(search_string), 405 ui_test_utils::FindInPage(web_contents, ASCIIToUTF16(search_string),
406 kFwd, kIgnoreCase, NULL, NULL)); 406 kFwd, kIgnoreCase, NULL, NULL));
407 } 407 }
408 408
409 #if defined(OS_WIN)
410 #define MAYBE_LargePage DISABLED_LargePage
411 #else
412 #define MAYBE_LargePage LargePage
413 #endif
409 // Find in a very large page. 414 // Find in a very large page.
410 IN_PROC_BROWSER_TEST_F(FindInPageControllerTest, LargePage) { 415 IN_PROC_BROWSER_TEST_F(FindInPageControllerTest, MAYBE_LargePage) {
411 WebContents* web_contents = 416 WebContents* web_contents =
412 browser()->tab_strip_model()->GetActiveWebContents(); 417 browser()->tab_strip_model()->GetActiveWebContents();
413 ui_test_utils::NavigateToURL(browser(), GetURL("largepage.html")); 418 ui_test_utils::NavigateToURL(browser(), GetURL("largepage.html"));
414 419
415 EXPECT_EQ(373, FindInPageASCII(web_contents, "daughter of Prince", 420 EXPECT_EQ(373, FindInPageASCII(web_contents, "daughter of Prince",
416 kFwd, kIgnoreCase, NULL)); 421 kFwd, kIgnoreCase, NULL));
417 } 422 }
418 423
419 // Find a very long string in a large page. 424 // Find a very long string in a large page.
420 IN_PROC_BROWSER_TEST_F(FindInPageControllerTest, FindLongString) { 425 IN_PROC_BROWSER_TEST_F(FindInPageControllerTest, FindLongString) {
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1553 1558
1554 EXPECT_TRUE(chrome::ExecuteCommand(browser_incognito, IDC_FIND_NEXT)); 1559 EXPECT_TRUE(chrome::ExecuteCommand(browser_incognito, IDC_FIND_NEXT));
1555 WebContents* web_contents_incognito = 1560 WebContents* web_contents_incognito =
1556 browser_incognito->tab_strip_model()->GetActiveWebContents(); 1561 browser_incognito->tab_strip_model()->GetActiveWebContents();
1557 ui_test_utils::FindInPageNotificationObserver observer( 1562 ui_test_utils::FindInPageNotificationObserver observer(
1558 web_contents_incognito); 1563 web_contents_incognito);
1559 observer.Wait(); 1564 observer.Wait();
1560 EXPECT_EQ(ASCIIToUTF16("bar"), 1565 EXPECT_EQ(ASCIIToUTF16("bar"),
1561 GetFindBarTextForBrowser(browser_incognito)); 1566 GetFindBarTextForBrowser(browser_incognito));
1562 } 1567 }
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