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

Issue 6289007: Adjust the Find test for unselectable test so that it has the right expectati... (Closed)

Created:
9 years, 11 months ago by Finnur
Modified:
9 years, 6 months ago
Reviewers:
ojan
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Adjust the Find test for unselectable test so that it has the right expectation now that my change has been merged down. BUG=68494 TEST=Fixing a test. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71779

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -10 lines) Patch
M chrome/browser/ui/find_bar/find_bar_host_browsertest.cc View 2 chunks +3 lines, -10 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Finnur
9 years, 11 months ago (2011-01-18 11:20:32 UTC) #1
ojan
9 years, 11 months ago (2011-01-18 17:57:53 UTC) #2
LGTM

On Tue, Jan 18, 2011 at 3:20 AM, <finnur@chromium.org> wrote:

> Reviewers: ojan,
>
> Description:
> Adjust the Find test for unselectable test so that it has the right
> expectation
> now that my change has been merged down.
>
> BUG=68494
> TEST=Fixing a test.
>
>
> Please review this at http://codereview.chromium.org/6289007/
>
> SVN Base: svn://svn.chromium.org/chrome/trunk/src/
>
> Affected files:
>  M     chrome/browser/ui/find_bar/find_bar_host_browsertest.cc
>
>
> Index: chrome/browser/ui/find_bar/find_bar_host_browsertest.cc
> ===================================================================
> --- chrome/browser/ui/find_bar/find_bar_host_browsertest.cc     (revision
> 71590)
> +++ chrome/browser/ui/find_bar/find_bar_host_browsertest.cc     (working
> copy)
> @@ -429,7 +429,7 @@
>  }
>
>  // Load a page with no selectable text and make sure we don't crash.
> -IN_PROC_BROWSER_TEST_F(FindInPageControllerTest, FindUnSelectableText) {
> +IN_PROC_BROWSER_TEST_F(FindInPageControllerTest, FindUnselectableText) {
>   ASSERT_TRUE(test_server()->Start());
>
>   // First we navigate to our page.
> @@ -438,15 +438,8 @@
>
>   int ordinal = 0;
>   TabContents* tab = browser()->GetSelectedTabContents();
> -
> -  int match_count =
> -      FindInPageWchar(tab, L"text", kFwd, kIgnoreCase, &ordinal);
> -  // TODO(finnur): These two values are currently 0 and 0 but will change
> to
> -  // 1 and 1 when we merge down a fix for un-selectable text in patch from
> -  // revision 75784 (https://bugs.webkit.org/show_bug.cgi?id=52367). Once
> the
> -  // patch has been rolled into Chromium I'll change this back to check
> for 1
> -  // explicitly (as opposed to using equality).
> -  EXPECT_EQ(match_count, ordinal);
> +  EXPECT_EQ(1, FindInPageWchar(tab, L"text", kFwd, kIgnoreCase,
> &ordinal));
> +  EXPECT_EQ(1, ordinal);
>  }
>
>  // Try to reproduce the crash seen in issue 1341577.
>
>
>

Powered by Google App Engine
This is Rietveld 408576698