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

Issue 6315005: This is the Chromium side of my WebKit change that fixes some Find issues wit... (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

This is the Chromium side of my WebKit change that fixes some Find issues with text marked as user-select-none. Basically, it should now find matches within such text and therefore we get 1 of 1 instead of 0 of 0 in this test. BUG=68494 TEST=This CL modifies a test to catch this. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71451

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -5 lines) Patch
M chrome/browser/ui/find_bar/find_bar_host_browsertest.cc View 1 1 chunk +9 lines, -5 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Finnur
9 years, 11 months ago (2011-01-14 10:56:20 UTC) #1
Finnur
9 years, 11 months ago (2011-01-14 10:56:20 UTC) #2
ojan
9 years, 11 months ago (2011-01-14 16:47:35 UTC) #3
LGTM

On Fri, Jan 14, 2011 at 2:56 AM, <finnur@chromium.org> wrote:

> Reviewers: ojan,
>
> Description:
> This is the Chromium side of my WebKit change that fixes some Find issues
> with
> text marked as user-select-none.
>
> Basically, it should now find matches within such text and therefore we get
> 1 of
> 1 instead of 0 of 0 in this test.
>
> BUG=68494
> TEST=This CL modifies a test to catch this.
>
>
> Please review this at http://codereview.chromium.org/6315005/
>
> 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
> 71302)
> +++ chrome/browser/ui/find_bar/find_bar_host_browsertest.cc     (working
> copy)
> @@ -438,11 +438,15 @@
>
>   int ordinal = 0;
>   TabContents* tab = browser()->GetSelectedTabContents();
> -  // The search string is present but doesn't qualify to be found
> -  EXPECT_EQ(0, FindInPageWchar(tab, L"text",
> -                               kFwd, kIgnoreCase, &ordinal));
> -  // With zero results there should be no current selection.
> -  EXPECT_EQ(0, ordinal);
> +
> +  int match_count = 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);
>  }
>
>  // Try to reproduce the crash seen in issue 1341577.
>
>
>

Powered by Google App Engine
This is Rietveld 408576698