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

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

Issue 301163004: Disable flaky FindInPageControllerTest.FindRestarts_Issue70505 on ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« 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 "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 // This string appears 5 times at the bottom of a long page. If Find restarts 794 // This string appears 5 times at the bottom of a long page. If Find restarts
795 // properly after a timeout, it will find 5 matches, not just 1. 795 // properly after a timeout, it will find 5 matches, not just 1.
796 int ordinal = 0; 796 int ordinal = 0;
797 EXPECT_EQ(5, FindInPageWchar(browser()->tab_strip_model()-> 797 EXPECT_EQ(5, FindInPageWchar(browser()->tab_strip_model()->
798 GetActiveWebContents(), 798 GetActiveWebContents(),
799 L"008.xml", 799 L"008.xml",
800 kFwd, kIgnoreCase, &ordinal)); 800 kFwd, kIgnoreCase, &ordinal));
801 EXPECT_EQ(1, ordinal); 801 EXPECT_EQ(1, ordinal);
802 } 802 }
803 803
804 // Disable the test for win and mac as it started being flaky, see 804 // Disable the test for win, mac and ChromeOS as it started being flaky, see
805 // http://crbug/367701. 805 // http://crbug/367701.
806 #if defined(OS_MACOSX) && !defined(OS_IOS) || defined(OS_WIN) 806 #if defined(OS_MACOSX) && !defined(OS_IOS) || defined(OS_WIN) || \
807 defined(OS_CHROMEOS)
807 #define MAYBE_FindRestarts_Issue70505 DISABLED_FindRestarts_Issue70505 808 #define MAYBE_FindRestarts_Issue70505 DISABLED_FindRestarts_Issue70505
808 #else 809 #else
809 #define MAYBE_FindRestarts_Issue70505 FindRestarts_Issue70505 810 #define MAYBE_FindRestarts_Issue70505 FindRestarts_Issue70505
810 #endif 811 #endif
811 // Make sure we don't get into an infinite loop when text box contains very 812 // Make sure we don't get into an infinite loop when text box contains very
812 // large amount of text. 813 // large amount of text.
813 IN_PROC_BROWSER_TEST_F(FindInPageControllerTest, 814 IN_PROC_BROWSER_TEST_F(FindInPageControllerTest,
814 MAYBE_FindRestarts_Issue70505) { 815 MAYBE_FindRestarts_Issue70505) {
815 // First we navigate to our page. 816 // First we navigate to our page.
816 GURL url = GetURL(kLongTextareaPage); 817 GURL url = GetURL(kLongTextareaPage);
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
1628 ASSERT_EQ(result, SIMPLEREGION); 1629 ASSERT_EQ(result, SIMPLEREGION);
1629 bool rects_equal = 1630 bool rects_equal =
1630 region_before.left == region_after.left && 1631 region_before.left == region_after.left &&
1631 region_before.top == region_after.top && 1632 region_before.top == region_after.top &&
1632 region_before.right == region_after.right && 1633 region_before.right == region_after.right &&
1633 region_before.bottom == region_after.bottom; 1634 region_before.bottom == region_after.bottom;
1634 ASSERT_FALSE(rects_equal); 1635 ASSERT_FALSE(rects_equal);
1635 } 1636 }
1636 1637
1637 #endif 1638 #endif
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