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

Issue 177052: Add autocomplete_edit_view_browsertest.cc (Closed)

Created:
11 years, 3 months ago by James Su
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

Add autocomplete_edit_view_browsertest.cc. This CL adds automated tests for AutocompleteEditView. BUG=20422 : Autocomplete edit view needs automated testing TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26190

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 12

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 10

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 20

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 6

Patch Set 13 : '' #

Patch Set 14 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+508 lines, -0 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit.h View 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 2 comments Download
A chrome/browser/autocomplete/autocomplete_edit_view_browsertest.cc View 5 6 7 8 9 10 11 12 13 1 chunk +501 lines, -0 lines 2 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
James Su
Hi, It's a preliminary CL to add automated tests for autocomplete edit view. It lacks ...
11 years, 3 months ago (2009-09-01 09:33:08 UTC) #1
Paweł Hajdan Jr.
Drive-by (and I have a watchlist for that). NACK. This patch is going to induce ...
11 years, 3 months ago (2009-09-01 15:37:41 UTC) #2
Evan Stade
http://codereview.chromium.org/177052/diff/1008/9 File chrome/browser/autocomplete/autocomplete_edit_view_uitest.cc (right): http://codereview.chromium.org/177052/diff/1008/9#newcode35 Line 35: PlatformThread::Sleep(200); why won't keyword mode be triggered without ...
11 years, 3 months ago (2009-09-01 17:55:37 UTC) #3
James Su
Thanks a lot for your feedback. I don't want to use Sleep as well. It'll ...
11 years, 3 months ago (2009-09-02 00:55:40 UTC) #4
James Su
But the code of AutocompleteEditProxy::WaitForIsSelectAllToBecome(), WaitForIsKeywordHintToBecome() and WaitForTextToBecome() are actually copied from BrowserProxy::WaitForTabCountToBecome(). Regards James ...
11 years, 3 months ago (2009-09-02 00:58:30 UTC) #5
James Su
I don't know the exactly reason that why keyword mode won't be triggered without the ...
11 years, 3 months ago (2009-09-02 01:01:38 UTC) #6
Evan Stade
you can take a look at ui_controls.h, we have some functions in there that will ...
11 years, 3 months ago (2009-09-02 01:06:52 UTC) #7
James Su
Thanks for your information. I'll look into these issues. Regards James Su On 2009/09/02 01:06:52, ...
11 years, 3 months ago (2009-09-02 01:08:59 UTC) #8
James Su
Hi, I updated this CL to use InProcessBrowserTest instead of UITest to make it simpler. ...
11 years, 3 months ago (2009-09-02 14:34:43 UTC) #9
Paweł Hajdan Jr.
http://codereview.chromium.org/177052/diff/10001/10002 File chrome/browser/autocomplete/autocomplete_edit_view_uitest.cc (right): http://codereview.chromium.org/177052/diff/10001/10002#newcode28 Line 28: static const int kSleepTime = 250; Please, don't ...
11 years, 3 months ago (2009-09-02 15:56:00 UTC) #10
James Su
Hi, Thanks so much for your feedback. I'll update this CL according to your comments ...
11 years, 3 months ago (2009-09-03 10:07:48 UTC) #11
Evan Stade
On Thu, Sep 3, 2009 at 3:07 AM, <suzhe@chromium.org> wrote: > Hi, > =C2=A0Thanks so ...
11 years, 3 months ago (2009-09-03 18:38:21 UTC) #12
James Su
Hi, I'm still struggling with the Windows support. Now these tests can run on my ...
11 years, 3 months ago (2009-09-10 10:22:41 UTC) #13
Evan Stade
+pkasting
11 years, 3 months ago (2009-09-10 18:31:46 UTC) #14
Peter Kasting
You should ask Brett about your NavigationController issues, he knows that code best. http://codereview.chromium.org/177052/diff/14005/20002 File ...
11 years, 3 months ago (2009-09-10 18:52:15 UTC) #15
James Su
Thanks a lot for your feedback. CL has been updated, and please see below my ...
11 years, 3 months ago (2009-09-11 07:28:43 UTC) #16
Paweł Hajdan Jr.
Just one comment. Thanks for your effort to make the test reliable. I'm really happy ...
11 years, 3 months ago (2009-09-11 15:59:01 UTC) #17
Peter Kasting
On 2009/09/11 07:28:43, James Su wrote: > http://codereview.chromium.org/177052/diff/14005/20002 > File chrome/browser/autocomplete/autocomplete_edit.h (right): > > http://codereview.chromium.org/177052/diff/14005/20002#newcode105 ...
11 years, 3 months ago (2009-09-11 16:01:26 UTC) #18
Peter Kasting
http://codereview.chromium.org/177052/diff/19004/12008 File chrome/browser/autocomplete/autocomplete_edit_view_browsertest.cc (right): http://codereview.chromium.org/177052/diff/19004/12008#newcode99 Line 99: SetInitialTimeoutInMS(120000); What is this? Timeout values always raise ...
11 years, 3 months ago (2009-09-11 16:05:24 UTC) #19
Evan Stade
thanks for writing these tests! http://codereview.chromium.org/177052/diff/19004/12008 File chrome/browser/autocomplete/autocomplete_edit_view_browsertest.cc (right): http://codereview.chromium.org/177052/diff/19004/12008#newcode252 Line 252: // See issue ...
11 years, 3 months ago (2009-09-11 18:15:45 UTC) #20
James Su
Hi, CL has been updated according to your feedback. And I moved this test into ...
11 years, 3 months ago (2009-09-14 05:20:44 UTC) #21
Paweł Hajdan Jr.
LGTM, feel free to ignore this nit. http://codereview.chromium.org/177052/diff/17009/17011 File chrome/browser/autocomplete/autocomplete_edit.h (right): http://codereview.chromium.org/177052/diff/17009/17011#newcode105 Line 105: // ...
11 years, 3 months ago (2009-09-14 16:48:41 UTC) #22
Peter Kasting
LGTM, I agree with Pawel's nit http://codereview.chromium.org/177052/diff/17009/17010 File chrome/browser/autocomplete/autocomplete_edit_view_browsertest.cc (right): http://codereview.chromium.org/177052/diff/17009/17010#newcode242 Line 242: // TODO(suzhe): ...
11 years, 3 months ago (2009-09-14 17:54:57 UTC) #23
James Su
11 years, 3 months ago (2009-09-15 01:13:47 UTC) #24
Thanks a lot. CL submitted with these changes.

Regards
James Su

http://codereview.chromium.org/177052/diff/17009/17011
File chrome/browser/autocomplete/autocomplete_edit.h (right):

http://codereview.chromium.org/177052/diff/17009/17011#newcode105
Line 105: // It should only be used by testing code.
On 2009/09/14 16:48:41, Paweł Hajdan Jr. wrote:
> nit: Why not #ifdef UNIT_TEST then?

Done.

http://codereview.chromium.org/177052/diff/17009/17010
File chrome/browser/autocomplete/autocomplete_edit_view_browsertest.cc (right):

http://codereview.chromium.org/177052/diff/17009/17010#newcode242
Line 242: // TODO(suzhe): Remove ths hack as soon as these bugs are fixed.
On 2009/09/14 17:54:57, Peter Kasting wrote:
> Nit: ths -> this

Done.

Powered by Google App Engine
This is Rietveld 408576698