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

Issue 2735533002: Use SetUserText() in OmniboxViewViews emphasis tests to ensure system coherence. (Closed)

Created:
3 years, 9 months ago by Peter Kasting
Modified:
3 years, 9 months ago
Reviewers:
elawrence
CC:
chromium-reviews, jdonnelly+watch_chromium.org, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use SetUserText() in OmniboxViewViews emphasis tests to ensure system coherence. The tests as first written used SetText(), which changes the text in the textfield itself but not the text that the view/edit data structures believe is present. Similarly, the edit model never thinks input is in progress. Since some of the tests want to pretend input _is_ in progress, the ability to override CurrentTextIsUrl() was introducd to hack around the issue. This does things more "the right way". BUG=none TEST=none Review-Url: https://codereview.chromium.org/2735533002 Cr-Commit-Position: refs/heads/master@{#455440} Committed: https://chromium.googlesource.com/chromium/src/+/1b06902a8e1ba9c3dabbd48f7fcb96d7d6ceedc3

Patch Set 1 #

Total comments: 2

Patch Set 2 : Test with and without accepting input. #

Total comments: 2

Patch Set 3 : Resync #

Patch Set 4 : Review comments #

Patch Set 5 : Hopefully compiles #

Patch Set 6 : Hopefully compiles deux #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -30 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_view_views.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views_unittest.cc View 1 2 3 4 5 8 chunks +46 lines, -20 lines 0 comments Download
M components/omnibox/browser/omnibox_view.h View 1 chunk +0 lines, -4 lines 0 comments Download
M components/omnibox/browser/omnibox_view.cc View 3 chunks +2 lines, -6 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (21 generated)
Peter Kasting
3 years, 9 months ago (2017-03-04 05:25:29 UTC) #2
Peter Kasting
BTW, I hope the last sentences of the CL description don't sound like they're demeaning ...
3 years, 9 months ago (2017-03-04 05:29:13 UTC) #5
elawrence
LGTM, thanks for the improvements! Would it make sense to have test variants (for the ...
3 years, 9 months ago (2017-03-04 18:41:48 UTC) #8
Peter Kasting
You need not re-review unless you want to. On 2017/03/04 18:41:48, elawrence wrote: > LGTM, ...
3 years, 9 months ago (2017-03-06 21:18:03 UTC) #9
elawrence
Ah, thanks for the explanation regarding the "using"! New tests LGTM, thanks for adding them! ...
3 years, 9 months ago (2017-03-07 03:16:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2735533002/100001
3 years, 9 months ago (2017-03-08 13:12:58 UTC) #25
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 13:17:14 UTC) #28
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/1b06902a8e1ba9c3dabbd48f7fcb...

Powered by Google App Engine
This is Rietveld 408576698